* {
    box-sizing: border-box;
}

body {
    background-color: #141315;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #FCFCDF;
    margin: 0;
    overflow-x: auto;
}

h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #FBD21F;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: #2A292B;
    color: #FCFCDF;
    font-size: 16px;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #A9A996;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #FBD21F;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #141315;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #eac719;
}

p {
    margin-top: 12px;
    text-align: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 120px;
    height: auto;
}

.dashboard {
    padding: 40px;
    color: #FCFCDF;
    max-width: 900px;
    margin: auto;
}

.dashboard h1 {
    color: #FBD21F;
    margin-bottom: 30px;
    text-align: center;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.card {
    background-color: #1E1D1F;
    padding: 20px;
    border-radius: 12px;
    flex: 1 1 40%;
    min-width: 200px;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(251, 210, 31, 0.1);
}

.logout-btn {
    display: block;
    margin: 40px auto 0;
    text-align: center;
    background: red;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    width: 200px;
}

.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #1E1D1F;
    padding: 20px;
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header img {
    max-width: 80px;
    margin-bottom: 10px;
}

.sidebar-header h2 {
    font-size: 18px;
    color: #FBD21F;
}

.nav-links {
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin: 16px 0;
}

.nav-links a {
    color: #FCFCDF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FBD21F;
}

.main-content {
    margin-left: 260px;
    padding: 40px;
    flex: 1;
    width: 100%;
    overflow-x: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: #1E1D1F;
    padding: 16px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 30px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form select {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #2A292B;
    color: #FCFCDF;
}

form button {
    background-color: #FBD21F;
    color: #141315;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

form button:hover {
    background-color: #e3bc18;
}

/* Таблица */
.table-container {
    overflow-x: auto;
    max-height: 650px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1E1D1F;
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 14px;
    border-bottom: 1px solid #333;
    text-align: left;
    white-space: nowrap;
}

table thead th {
    position: sticky;
    top: 0;
    background-color: #2A292B;
    color: #FBD21F;
    z-index: 10;
}

/* Кнопки действий */
.table-actions a {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    margin-right: 6px;
    font-size: 14px;
}

.btn-edit {
    background-color: #FBD21F;
    color: #141315;
}

.btn-delete {
    background-color: #FF4C4C;
}

.btn-edit:hover {
    background-color: #e3bc18;
}

.btn-delete:hover {
    background-color: #d63333;
}

/* Кнопка добавления */
.btn-add {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #FBD21F;
    color: #141315;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Пагинация */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #2A292B;
    color: #FBD21F;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #FBD21F;
    color: #141315;
}

.pagination .active {
    background: #FBD21F;
    color: #141315;
    font-weight: bold;
}

/* Сообщения */
.alert-success {
    background-color: #2d4d1d;
    color: #d4f4b1;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.alert-error {
    background-color: #4d1d1d;
    color: #f4b1b1;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.divider {
    border: none;
    border-top: 1px solid #444;
    margin: 16px 0;
}

.sub-menu {
    list-style: none;
    padding-left: 15px;
    display: none;
    margin-top: 10px;
}

.sub-menu li {
    margin: 8px 0;
}

.sub-menu a {
    font-size: 14px;
    color: #A9A996;
    text-decoration: none;
}

.sub-menu a:hover {
    color: #FBD21F;
}

.settings-toggle {
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
}
