/* 
   ==========================================================================
   PORTFOLIO ADMIN PANEL MAIN STYLE SHEET (VANILLA CSS)
   ==========================================================================
*/

/* 1. Reset & Admin Variables */
:root {
    --bg-admin-main: #090d16;
    --bg-admin-card: rgba(17, 24, 39, 0.6);
    --bg-admin-sidebar: #0e1322;
    --border-admin: rgba(255, 255, 255, 0.06);
    --border-admin-hover: rgba(255, 255, 255, 0.12);
    
    --primary: #8b5cf6;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --secondary-gradient: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    
    --text-admin-main: #f3f4f6;
    --text-admin-muted: #9ca3af;
    
    --transition-admin: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-admin: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-admin-main);
    color: var(--text-admin-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 2. Admin Structural Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background-color: var(--bg-admin-sidebar);
    border-right: 1px solid var(--border-admin);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition-admin);
    position: relative;
    z-index: 100;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-admin);
}

.sidebar-logo {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-admin-muted);
    cursor: pointer;
}

.sidebar-user {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-admin);
}

.user-avatar-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-admin);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-fallback {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-admin-muted);
}

.sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-admin-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-admin);
    gap: 12px;
}

.menu-item:hover {
    color: var(--text-admin-main);
    background: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
    color: white;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.menu-icon {
    flex-shrink: 0;
}

.menu-item.active .menu-icon {
    stroke: white;
}

.badge {
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    margin-left: auto;
}

.badge-unread {
    background-color: #ef4444;
    color: white;
}

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

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    color: #fca5a5;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-admin);
    gap: 8px;
}

.btn-logout:hover {
    background: #ef4444;
    color: white;
    border-color: transparent;
}

/* Main Area */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    height: 70px;
    background-color: var(--bg-admin-sidebar);
    border-bottom: 1px solid var(--border-admin);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.sidebar-open {
    display: none;
    background: none;
    border: none;
    color: var(--text-admin-main);
    cursor: pointer;
}

.header-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.btn-view-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-admin);
    border-radius: 8px;
    color: var(--text-admin-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-admin);
}

.btn-view-site:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-admin-hover);
}

.admin-content {
    padding: 32px;
    flex-grow: 1;
    overflow-y: auto;
}

/* 3. Reusable Components & Cards */
.dashboard-card {
    background-color: var(--bg-admin-card);
    border: 1px solid var(--border-admin);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-admin);
    backdrop-filter: blur(10px);
}

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

.card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.card-header-actions {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-admin);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.card-body {
    padding: 24px;
}

/* Alert notifications */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.alert-message {
    flex-grow: 1;
    font-size: 0.9rem;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* 4. Dashboard View Specifics */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-admin-card);
    border: 1px solid var(--border-admin);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-admin);
    transition: var(--transition-admin);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    z-index: 2;
}

.stat-purple .stat-icon { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.stat-blue .stat-icon { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.stat-indigo .stat-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-pink .stat-icon { background: rgba(217, 70, 239, 0.15); color: #f472b6; }

.stat-details {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-admin-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.btn-card-action {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-admin);
    border-radius: 6px;
    color: var(--text-admin-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-admin);
}

.btn-card-action:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Recent messages styling */
.recent-messages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-message-item {
    display: flex;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-admin);
    gap: 16px;
    transition: var(--transition-admin);
}

.recent-message-item:hover {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.04);
}

.recent-message-item.unread {
    border-left: 3px solid var(--primary);
    background: rgba(139, 92, 246, 0.03);
}

.message-sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.message-meta {
    flex-grow: 1;
    min-width: 0;
}

.message-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.message-sender-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-admin-muted);
}

.message-email {
    font-size: 0.8rem;
    color: var(--text-admin-muted);
    display: block;
    margin-bottom: 6px;
}

.message-subject {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-admin);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-admin-main);
    transition: var(--transition-admin);
    gap: 12px;
}

.action-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.04);
    transform: translateY(-2px);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.action-blue { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }
.action-indigo { background: rgba(99, 102, 241, 0.1); color: #818cf8; }
.action-gray { background: rgba(255, 255, 255, 0.05); color: #cbd5e1; }

.action-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* 5. Forms controls */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.col-6 { width: 50%; }

.form-group {
    margin-bottom: 20px;
}

.control-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.form-input-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid var(--border-admin);
    border-radius: 8px;
    color: var(--text-admin-main);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition-admin);
    box-sizing: border-box;
}

.form-input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.textarea-control {
    resize: vertical;
}

.input-help-text {
    font-size: 0.75rem;
    color: var(--text-admin-muted);
    margin-top: 6px;
}

/* Password Visibility Wrapper */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-password-preview {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-admin-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-password-preview:hover {
    color: white;
}

/* Buttons in Admin */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition-admin);
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-admin-main);
    border: 1px solid var(--border-admin);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-purple {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
}

.btn-purple:hover {
    transform: translateY(-1px);
}

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Profile specific details */
.admin-profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.profile-avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-admin);
    padding: 20px;
    border-radius: 12px;
}

.profile-large-avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border-admin);
}

.profile-large-avatar-fallback {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.uploaded-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-admin);
    margin-bottom: 12px;
    width: fit-content;
}

.cv-download-link {
    color: #f87171;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.cv-download-link:hover {
    text-decoration: underline;
}

.section-divider-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin: 30px 0 20px 0;
    border-bottom: 1px solid var(--border-admin);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6. Admin Tables & Actions */
.scrollable-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid var(--border-admin);
    padding: 16px 20px;
    font-weight: 600;
    color: white;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-admin);
    color: var(--text-admin-main);
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.table-progress-bar-container {
    width: 100%;
    max-width: 160px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    position: relative;
}

.table-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
}

.table-progress-text {
    font-size: 0.75rem;
    color: var(--text-admin-muted);
    margin-left: 12px;
    font-weight: 600;
}

/* Badges */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-admin);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-admin);
    transition: var(--transition-admin);
}

.btn-action-view { color: #38bdf8; }
.btn-action-view:hover { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.3); }

.btn-action-edit { color: #a78bfa; }
.btn-action-edit:hover { background: rgba(167, 139, 250, 0.15); border-color: rgba(167, 139, 250, 0.3); }

.btn-action-delete { color: #f87171; }
.btn-action-delete:hover { background: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.3); }

/* Filter & Search forms inside Admin headers */
.filter-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    min-width: 220px;
}

.search-input-wrapper .search-input {
    padding-left: 36px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-admin-muted);
    pointer-events: none;
}

.filter-select-wrapper {
    min-width: 160px;
}

.btn-reset {
    padding: 10px 16px;
}

/* Checkbox customized */
.checkbox-container-custom {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container-custom input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-admin);
    border-radius: 4px;
    background: rgba(10,15,26,0.8);
    cursor: pointer;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container-custom input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container-custom input:checked::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-0.5px, -0.5px);
}

.checkbox-label {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Range input slider styling */
.range-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.range-slider {
    flex-grow: 1;
    appearance: none;
    height: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #a855f7;
    cursor: pointer;
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-val-display {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    min-width: 40px;
}

/* Modals structures */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-dialog {
    width: 100%;
    max-width: 500px;
    background: #0e1420;
    border: 1px solid var(--border-admin);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-lg {
    max-width: 750px;
}

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

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-admin-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.modal-close-btn:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-admin);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Image fallback in tables */
.table-project-img-container {
    width: 80px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-admin);
    background: rgba(255,255,255,0.02);
}

.table-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-project-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-admin-muted);
}

/* Messages highlighting */
.row-unread-highlight {
    background: rgba(139, 92, 246, 0.02);
}

.row-unread-highlight td {
    font-weight: 500;
    color: white;
}

.status-indicator-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-read {
    background: rgba(156, 163, 175, 0.12);
    color: var(--text-admin-muted);
}

.status-unread {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

/* 7. Responsive Styles for Admin Panel */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar-open {
        display: block;
    }
    
    .admin-header {
        padding: 0 24px;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px;
    }
    
    .card-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .filter-select-wrapper {
        width: 100%;
    }
    
    .btn-reset {
        text-align: center;
    }
    
    .card-header-actions .btn-primary {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .col-6 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-avatar-upload-section {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom History Type Badge */
.badge-custom {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

