* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #1f2937;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ЛЕВОЕ МЕНЮ */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #111827;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
}

.sidebar-logo {
    margin-bottom: 30px;
}

.sidebar-logo h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.sidebar-logo span {
    color: #9ca3af;
    font-size: 14px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu a,
.sidebar-bottom a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
    transition: 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #2563eb;
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-bottom a:hover {
    background: #374151;
    color: white;
}

/* ОСНОВНАЯ ЧАСТЬ */

.admin-content {
    flex: 1;
    padding: 32px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 30px;
    margin-bottom: 7px;
}

.page-header p {
    color: #6b7280;
}

/* КАРТОЧКИ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 30px;
    color: #111827;
}

/* ПОСЛЕДНИЕ ЗАЯВКИ */

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.empty-state {
    color: #6b7280;
    padding: 25px 0;
}

/* АДАПТАЦИЯ */

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .admin-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 20px;
    }
}

.applications-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
}

.applications-toolbar input,
.applications-toolbar select {
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.applications-toolbar input {
    width: 360px;
}

.applications-table-wrap {
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table th,
.applications-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.applications-table th {
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
}

.table-empty {
    text-align: center !important;
    color: #6b7280;
    padding: 35px !important;
}

.reports-stats {
    margin-bottom: 30px;
}

.mailing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.primary-button {
    border: none;
    background: #2563eb;
    color: white;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.primary-button:hover {
    background: #1d4ed8;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.settings-card h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.settings-card label {
    display: block;
    margin-top: 14px;
    margin-bottom: 7px;
    font-size: 14px;
    color: #4b5563;
}

.settings-card input,
.settings-card select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.settings-status {
    margin-top: 18px;
    font-size: 14px;
    color: #6b7280;
}

.status-disabled {
    color: #dc2626;
    font-weight: 600;
}

.settings-actions {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.filter-button {
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.filter-button:hover {
    background: #1d4ed8;
}

.filter-reset {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 8px;
    color: #6b7280;
    text-decoration: none;
}

.filter-reset:hover {
    color: #111827;
}