body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}
header {
    background-color: #2c3e50;
    padding: 20px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
}
header h1 {
    margin: 0;
}
nav .nav {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}
nav .nav li {
    display: inline;
}
nav .nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
}
nav .nav a:hover {
    color: #3498db;
}
main {
    padding: 20px;
}
h2 {
    color: #34495e;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
table, th, td {
    border: 1px solid #bdc3c7;
}
th, td {
    padding: 10px;
    text-align: left;
}
a {
    color: #2980b9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button {
    background-color: #2980b9;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}
button:hover {
    background-color: #3498db;
}
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}
/* Общие стили для контейнера */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Стили для каждой карточки */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    width: 300px;
    display: flex;
    flex-direction: column;
}

.card-header h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #2c3e50;
}

.card-body p {
    margin: 8px 0;
    font-size: 0.95em;
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.card-actions a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

.card-actions a:hover {
    text-decoration: underline;
}

/* Стили для кнопки добавления */
.add-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #27ae60;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.add-button:hover {
    background-color: #2ecc71;
}

/* Стили для выхода */
.logout-button {
    display: inline-block;
    margin-left: 15px;
    padding: 10px 15px;
    background-color: #c0392b;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.logout-button:hover {
    background-color: #e74c3c;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 400px;
  max-width: 90%;
  position: relative;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.pagination a {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}
.pagination a:hover {
    background-color: #ddd;
}
.pagination strong {
    padding: 8px 12px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
}
.settings-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}
.settings-form label {
    margin-right: 8px;
}
