/* ==================== 管理员后台样式 ==================== */

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-card {
    background: var(--tile-bg);
    border-radius: 18px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--nav-border);
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.login-logo {
    margin-bottom: 28px;
}

.login-logo .logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.login-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.login-card .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-card .form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.login-card .form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.login-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--accent-blue);
    border: none;
    border-radius: 980px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-family: inherit;
}

.login-btn:hover {
    background: var(--accent-blue-hover);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-hint {
    margin-top: 18px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.form-checkbox {
    margin-bottom: 22px;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-tertiary);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.admin-panel {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.sidebar {
    width: 260px;
    background: var(--tile-bg);
    border-right: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header .logo-icon {
    font-size: 28px;
}

.sidebar-header .logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-item.active {
    color: var(--accent-blue);
    background: rgba(0, 113, 227, 0.08);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--accent-blue);
    border-radius: 0 3px 3px 0;
}

.nav-item .icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.nav-item .badge {
    margin-left: auto;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 980px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--nav-border);
}

.maintenance-toggle-wrapper {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--nav-border);
}

.maintenance-toggle {
    width: 46px;
    height: 26px;
    background: #e5e5ea;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.maintenance-toggle .maintenance-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.maintenance-toggle.active {
    background: #ff3b30;
}

.maintenance-toggle.active .maintenance-slider {
    transform: translateX(20px);
}

.maintenance-label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.maintenance-toggle.active + .maintenance-label {
    color: #ff3b30;
    font-weight: 500;
}

.logout-btn {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--nav-border);
    border-radius: 980px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.logout-btn:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
}

.main-content {
    flex: 1;
    padding: 32px;
    min-width: 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nav-border);
}

.sidebar-toggle {
    display: none;
}

.top-bar h1,
.top-bar h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-badge {
    background: var(--accent-blue);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 980px;
    font-weight: 600;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--tile-bg);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--nav-border);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.recent-activity {
    background: var(--tile-bg);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--nav-border);
}

.recent-activity h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--tile-hover-bg);
}

.activity-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 10px;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: var(--text-primary);
    margin-bottom: 2px;
    font-size: 14px;
}

.activity-content span {
    font-size: 12px;
    color: var(--text-tertiary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.add-ban-btn {
    padding: 8px 18px;
    background: var(--accent-blue);
    border: none;
    border-radius: 980px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    font-weight: 500;
}

.add-ban-btn:hover {
    background: var(--accent-blue-hover);
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 980px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-blue);
    color: white;
}

.section-count {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 980px;
}

.filter-bar select {
    padding: 10px 16px;
    background: var(--tile-bg);
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.data-table-container {
    background: var(--tile-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--nav-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--nav-border);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.data-table td {
    color: var(--text-primary);
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(0, 113, 227, 0.04);
}

.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
}

.type-badge.appeal {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.type-badge.report {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.type-badge.item-loss {
    background: rgba(175, 82, 222, 0.12);
    color: #af52de;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.status-badge.punished {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.status-badge.accepted {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.status-badge.no-action {
    background: rgba(142, 142, 147, 0.12);
    color: #8e8e93;
}

.status-badge.cancelled {
    background: rgba(142, 142, 147, 0.12);
    color: #8e8e93;
}

.status-badge.admin-role {
    background: rgba(255, 204, 0, 0.12);
    color: #ffcc00;
}

.status-badge.user-role {
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent-blue);
}

.status-badge.banned {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.status-badge.active-status {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.action-btn {
    padding: 6px 14px;
    background: var(--accent-blue);
    border: none;
    border-radius: 980px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--accent-blue-hover);
}

.action-btn.danger-btn {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.action-btn.danger-btn:hover {
    background: rgba(255, 59, 48, 0.2);
}

.action-btn.admin-role-btn {
    background: rgba(175, 82, 222, 0.12);
    color: #af52de;
}

.action-btn.admin-role-btn:hover {
    background: rgba(175, 82, 222, 0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--tile-bg);
    border-radius: 18px;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid var(--nav-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--nav-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 55vh;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 7px;
    font-weight: 500;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.modal-reason-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--nav-border);
}

.modal-reason-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-reason-group label .required-star {
    color: #ff3b30;
    margin-left: 3px;
}

.modal-reason-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-reason-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.modal-reason-group textarea::placeholder {
    color: var(--text-tertiary);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--nav-border);
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 980px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.modal-btn.punish {
    background: #ff3b30;
    color: white;
}

.modal-btn.punish:hover {
    background: #ff453a;
}

.modal-btn.accept {
    background: #34c759;
    color: white;
}

.modal-btn.accept:hover {
    background: #30d158;
}

.modal-btn.no-action {
    background: rgba(142, 142, 147, 0.12);
    color: #8e8e93;
}

.modal-btn.no-action:hover {
    background: rgba(142, 142, 147, 0.2);
}

.modal-btn.cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.modal-btn.cancel:hover {
    background: var(--tile-hover-bg);
}

.modal-btn.ban-btn {
    background: #ff3b30;
    color: white;
}

.modal-btn.ban-btn:hover {
    background: #ff453a;
}

.modal-btn.unban-btn {
    background: #34c759;
    color: white;
}

.modal-btn.unban-btn:hover {
    background: #30d158;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    width: 90px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
}

.detail-value.code {
    font-family: 'SF Mono', Monaco, monospace;
    background: rgba(0, 113, 227, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    color: var(--accent-blue);
    font-size: 13px;
}

.detail-text {
    background: var(--bg-secondary);
    padding: 14px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.btn-sm {
    padding: 5px 12px;
    border: none;
    border-radius: 980px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-right: 4px;
    font-weight: 500;
}

.btn-detail {
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent-blue);
}

.btn-detail:hover {
    background: rgba(0, 113, 227, 0.2);
}

.btn-delete {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.btn-delete:hover {
    background: rgba(255, 59, 48, 0.2);
}

.suggestion-detail-modal {
    background: var(--tile-bg);
    border-radius: 18px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--nav-border);
}

.suggestion-detail-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 0 16px 0;
    border-bottom: 1px solid var(--nav-border);
}

.suggestion-detail-modal .modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.suggestion-detail-modal .modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 22px;
    cursor: pointer;
}

.suggestion-detail-modal .modal-body p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.suggestion-detail-modal .modal-body strong {
    color: var(--text-primary);
}

.suggestion-detail-modal .detail-content {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--nav-border);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-table {
        min-width: 700px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .admin-panel {
        overflow-x: hidden;
    }

    .sidebar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 1001;
        margin-right: 10px;
    }

    .sidebar-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .sidebar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .sidebar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .sidebar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .sidebar {
        width: 260px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
    }

    .top-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding-bottom: 14px;
        margin-bottom: 18px;
    }

    .top-bar h1 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .stat-number {
        font-size: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .add-ban-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .filter-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        min-width: 60px;
        padding: 8px 12px;
        font-size: 13px;
        text-align: center;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .action-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 18px;
    }

    .modal-body {
        padding: 18px;
        max-height: 55vh;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 18px;
    }

    .modal-btn {
        padding: 13px;
        font-size: 14px;
    }

    .login-card {
        margin: 0 15px;
        padding: 36px 28px;
    }

    .login-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px;
    }

    .top-bar {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .top-bar h1 {
        font-size: 18px;
    }

    .admin-name {
        font-size: 13px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .type-badge,
    .status-badge {
        padding: 3px 10px;
        font-size: 12px;
    }

    .action-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .recent-activity {
        padding: 18px;
    }

    .recent-activity h2 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .activity-item {
        padding: 10px;
        gap: 10px;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .login-card {
        padding: 30px 22px;
        margin: 0 12px;
    }

    .modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 14px 14px 0 0;
        position: fixed;
        bottom: 0;
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 16px;
        max-height: 50vh;
    }

    .modal-footer {
        padding: 16px;
        gap: 8px;
    }

    .modal-btn {
        padding: 12px;
        font-size: 14px;
    }
}
