/* =========================================================
   MESUT OTO HIDROLIK - ADMIN PANEL ULTRA CSS
   Modern Glassmorphism & High-End Dark UI
   ========================================================= */

:root {
    --bg-main: #0c0d19;
    --bg-card: rgba(22, 25, 45, 0.75);
    --bg-card-hover: rgba(30, 34, 60, 0.85);
    --bg-sidebar: #0f1122;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(233, 69, 96, 0.35);
    --accent: #e94560;
    --accent-gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --accent-hover: #ff6b6b;
    --text-main: #f0f2f8;
    --text-muted: #8e95ab;
    --text-dim: #5c6278;
    --success: #25D366;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(233, 69, 96, 0.25);
    --sidebar-width: 270px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* =========================================================
   LOGIN SCREEN
   ========================================================= */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, #1a1e38 0%, #0c0d19 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1.5rem;
}

.login-card {
    background: rgba(22, 25, 45, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(233, 69, 96, 0.15);
    width: 100%;
    max-width: 440px;
    padding: 2.8rem 2.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.login-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 0.4rem;
}

.login-logo span {
    color: var(--accent);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-form-group {
    text-align: left;
    margin-bottom: 1.3rem;
}

.login-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(12, 13, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.login-input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.toggle-pwd-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.login-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.45);
}

.login-footer-hint {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* =========================================================
   ADMIN LAYOUT
   ========================================================= */
.admin-app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.sidebar-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-badge {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 14px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background: rgba(233, 69, 96, 0.15);
    border-color: rgba(233, 69, 96, 0.3);
    font-weight: 600;
}

.nav-item.active .nav-item-icon {
    color: var(--accent);
}

.nav-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.admin-user-text .admin-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
}

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

.logout-btn {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* MAIN CONTENT */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-main);
}

/* TOP HEADER */
.admin-top-header {
    height: var(--header-height);
    background: rgba(15, 17, 34, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.page-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-breadcrumb span {
    color: #fff;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--success);
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.view-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.view-site-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
    transition: all 0.25s ease;
}

.header-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(233, 69, 96, 0.45);
}

/* BODY CONTENT TABS */
.admin-body {
    padding: 2rem;
    flex: 1;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.admin-tab-pane {
    display: none;
    animation: fadeInTab 0.35s ease forwards;
}

.admin-tab-pane.active {
    display: block;
}

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

/* SECTION HEADER */
.section-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    padding: 1.4rem 1.8rem;
    border-radius: var(--radius-md);
}

.section-header-banner h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}

.section-header-banner p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* CARDS & GRIDS */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.admin-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease;
}

.admin-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.admin-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.admin-card-title span.icon {
    font-size: 1.2rem;
}

/* STAT WIDGETS (DASHBOARD) */
.stat-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
}

.stat-widget:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.stat-widget-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(233, 69, 96, 0.12);
    border: 1px solid rgba(233, 69, 96, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
}

.stat-widget-info .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.stat-widget-info .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}

/* FORM CONTROLS */
.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-group .form-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(12, 13, 25, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
    background: rgba(12, 13, 25, 0.95);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* SWITCH TOGGLE */
.switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(12, 13, 25, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.switch-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.15);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--accent-gradient);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* IMAGE UPLOADER COMPONENT */
.img-uploader-box {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    background: rgba(12, 13, 25, 0.5);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.img-uploader-box.dragover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.08);
}

.img-preview-wrap {
    width: 100%;
    max-height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
    background: #080912;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.img-preview-wrap img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
    padding: 8px;
}

.img-preview-wrap .no-img-placeholder {
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.img-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.btn-file-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.btn-file-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-img-remove {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-img-remove:hover {
    background: var(--danger);
    color: #fff;
}

.stock-picker-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    justify-content: center;
}

.stock-pill {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.stock-pill:hover {
    color: #fff;
    border-color: var(--accent);
}

/* BUTTONS */
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(233, 69, 96, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-success {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}

/* LIST & TABLE VIEW */
.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

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

.admin-table th {
    background: rgba(12, 13, 25, 0.8);
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    vertical-align: middle;
}

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

.table-img-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #080912;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.badge-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-pill-accent { background: rgba(233, 69, 96, 0.15); color: var(--accent); border: 1px solid rgba(233, 69, 96, 0.3); }
.badge-pill-success { background: rgba(37, 211, 102, 0.15); color: var(--success); border: 1px solid rgba(37, 211, 102, 0.3); }
.badge-pill-warning { background: rgba(243, 156, 18, 0.15); color: var(--warning); border: 1px solid rgba(243, 156, 18, 0.3); }

.action-btn-group {
    display: flex;
    gap: 6px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

.action-btn-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* CARDS LIST FOR SERVICES & STATS */
.item-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.item-card {
    background: rgba(12, 13, 25, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.item-card:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-3px);
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.item-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.item-card-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.45;
}

.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

/* MODAL WINDOWS */
.admin-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-modal-overlay.active {
    display: flex;
}

.admin-modal-box {
    background: #13162b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(233, 69, 96, 0.2);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

.admin-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.admin-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.admin-modal-close:hover {
    color: #fff;
}

.admin-modal-body {
    padding: 1.8rem;
}

.admin-modal-footer {
    padding: 1.2rem 1.8rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(12, 13, 25, 0.4);
}

/* LIVE PREVIEW IFRAME MODAL */
.preview-modal-box {
    max-width: 1200px;
    width: 95vw;
    height: 88vh;
    display: flex;
    flex-direction: column;
}

.preview-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* MESSAGES INBOX */
.message-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.message-card.unread {
    border-left: 4px solid var(--accent);
    background: rgba(233, 69, 96, 0.04);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.message-sender {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.message-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.message-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.message-body {
    background: rgba(12, 13, 25, 0.5);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: #e0e4f0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.message-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* TOAST NOTIFICATIONS */
.admin-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-toast {
    background: #16192d;
    color: #fff;
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
}

.admin-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.admin-toast.toast-success { border-left-color: var(--success); }
.admin-toast.toast-warning { border-left-color: var(--warning); }
.admin-toast.toast-danger { border-left-color: var(--danger); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .mobile-toggle-btn {
        display: block;
    }
    .admin-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .admin-grid-3 {
        grid-template-columns: 1fr;
    }
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-body {
        padding: 1rem;
    }
    .admin-top-header {
        padding: 0 1rem;
    }
    .admin-grid-4 {
        grid-template-columns: 1fr;
    }
    .section-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
