/* Admin Panel Specific Styling */
:root {
    --admin-bg: #f8fafc;
    --card-bg: #ffffff;
    --primary: #2563eb;
    --accent: #0f172a;
    --border-color: #e2e8f0;
}

body.admin-body {
    background-color: var(--admin-bg);
    font-family: 'Inter', sans-serif;
}

.admin-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 20px;
}

.form-label-custom {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.admin-input {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.admin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.section-divider {
    border-bottom: 1px solid var(--border-color);
    margin: 30px 0;
    position: relative;
}

.section-title {
    background: var(--card-bg);
    padding: 0 15px;
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 12px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
}

.btn-save-settings {
    background: var(--accent);
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-save-settings:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2);
}

.upload-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px dashed #cbd5e1;
    margin-bottom: 10px;
}
/* --- Doctor Profile Professional Styling --- */

.doc-preview-wrapper {
    position: relative;
    width: 220px;
    height: 280px;
    margin: 0 auto 15px;
}

/* Website jaisa Rectangular Look */
.preview-box-main {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 30px;
    overflow: hidden;
    border: 2px dashed #00a9e0; /* Blue dashed border */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

/* Jab image aa jaye to border change ho */
.preview-box-main.active-border {
    border: 2px solid #00a9e0;
}

.preview-box-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image ko kharab nahi hone dega */
    display: block;
}

.preview-decoration {
    position: absolute;
    top: 10px;
    right: -10px;
    width: 100%;
    height: 100%;
    background: #00a9e0;
    opacity: 0.1;
    border-radius: 30px;
    z-index: 1;
}

.input-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.hint-success {
    color: #16a34a !important;
    font-weight: 700;
}

textarea.admin-input {
    min-height: 150px;
    padding: 15px;
}
/* --- Neuro Test Lab Preview --- */
.lab-preview-box {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px dashed #00a9e0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-preview-box.has-img {
    border: 2px solid #00a9e0;
}
/* --- Appointments Table Styling --- */

/* Badge Styles for Status */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Status Colors */
.bg-pending {
    background-color: #fff8e1; /* Light Yellow */
    color: #f59e0b; /* Amber/Orange */
    border: 1px solid #fde68a;
}

.bg-confirmed {
    background-color: #f0fdf4; /* Light Green */
    color: #16a34a; /* Green */
    border: 1px solid #bbf7d0;
}

.bg-cancelled {
    background-color: #fef2f2; /* Light Red */
    color: #dc2626; /* Red */
    border: 1px solid #fecaca;
}

/* Patient Info Cell */
.patient-info b {
    display: block;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.patient-info span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Contact Info Styling */
.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    margin-bottom: 4px;
}

.contact-link i {
    width: 20px;
    text-align: center;
}

.contact-link:hover {
    color: #00a9e0;
}

/* Custom Table Design */
.admin-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 18px 12px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Action Buttons */
.btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    transition: all 0.2s ease;
}

.btn-delete {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-delete:hover {
    background-color: #ef4444;
    color: white;
}

/* Status Change Dropdown Button */
.btn-group .btn-outline-secondary {
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px !important;
}

.btn-group .btn-outline-secondary:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #00a9e0;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .admin-card {
        border-radius: 10px;
        overflow-x: auto;
    }
}
:root {
    --primary-color: #3b82f6;
    --dark-navy: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fe;
}

/* Navbar Container */
.main-site-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    height: 85px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Logo Styling */
.navbar-brand-custom {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.top-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1;
}

.bottom-text {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--primary-color);
}

/* Hover Underline effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* User Pill Profile */
.user-pill {
    background: #f1f5f9;
    padding: 6px 15px 6px 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.user-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-pill span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-navy);
}

.user-pill:hover {
    background: #e2e8f0;
}

/* Spacing for content below fixed nav */
.content-spacer {
    height: 110px;
}

/* Dropdown */
.custom-dropdown {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px;
    margin-top: 15px;
}
/* --- Global Styles --- */
.text-navy { color: #002244 !important; }
.text-primary { color: #2563eb !important; }

/* Custom Tabs */
.custom-tabs {
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    display: inline-flex;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.tab-link {
    border: none;
    background: transparent;
    padding: 8px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    transition: 0.3s;
    cursor: pointer;
}
.tab-link.active {
    background: #002244;
    color: #fff;
}

/* Card Styling */
.admin-card-white {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eef2f6;
}
.section-title-large {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Styling */
.admin-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.admin-input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1.5px solid #f1f5f9;
    background: #f8fafc;
    font-size: 14px;
    margin-bottom: 10px;
}
.admin-input:focus {
    border-color: #ff7e1f;
    outline: none;
    background: #fff;
}

/* Sidebar News Card */
.promo-navy-card {
    background: #002244;
    padding: 25px;
    border-radius: 20px;
}
.admin-input-dark {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    margin-bottom: 10px;
}
.admin-save-btn {
    width: 100%;
    background: #ff7e1f;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    transition: 0.3s;
}

/* Action Buttons */
.btn-action {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}
.btn-view { background: #e0f2fe; color: #0369a1; }
.btn-edit { background: #fef3c7; color: #d97706; }
.btn-delete { background: #fee2e2; color: #dc2626; border: none; }

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}
.bg-confirmed { background: #dcfce7; color: #166534; }
.bg-cancelled { background: #f1f5f9; color: #64748b; }

/* Image Preview */
.lab-preview-box {
    width: 100%;
    height: 180px;
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}
/* --- RESEARCH ADMIN MASTER STYLES --- */

:root {
    --navy: #002244;
    --primary: #2563eb;
    --soft-bg: #f4f7fe;
    --border: #e2e8f0;
}

/* Tab Navigation */
.tab-btn {
    padding: 10px 22px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.active-tab {
    background: var(--navy) !important;
    color: white !important;
    box-shadow: 0 8px 15px rgba(0, 34, 68, 0.15);
}

/* Form Styling */
.admin-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 10px !important;
    display: block;
}

.admin-input {
    font-size: 15px !important;
    padding: 14px 18px !important;
    background-color: #f8fafc !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 14px !important;
    width: 100%;
    transition: all 0.3s ease;
}

.admin-input:focus {
    border-color: var(--primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08) !important;
    outline: none;
}

.input-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Table Design */
.admin-table-custom {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}

.admin-table-custom thead th {
    border: none;
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 10px 20px;
    font-weight: 800;
}

.admin-table-custom tbody tr {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border-radius: 15px;
}

.admin-table-custom tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table-custom tbody tr td:first-child { border-left: 1px solid #f1f5f9; border-radius: 15px 0 0 15px; }
.admin-table-custom tbody tr td:last-child { border-right: 1px solid #f1f5f9; border-radius: 0 15px 15px 0; }

/* Action Buttons */
.action-btn-view, .action-btn-edit, .action-btn-delete {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.action-btn-view { background: #f0f9ff; color: #0ea5e9; border: 1px solid #e0f2fe; }
.action-btn-view:hover { background: #0ea5e9; color: #fff; }

.action-btn-edit { background: #f0fdf4; color: #22c55e; border: 1px solid #dcfce7; }
.action-btn-edit:hover { background: #22c55e; color: #fff; }

.action-btn-delete { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }
.action-btn-delete:hover { background: #ef4444; color: #fff; }

/* Badges */
.badge-cat {
    background: #f5f3ff;
    color: #7c3aed;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.admin-save-btn {
    border-radius: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 15px rgba(0, 34, 68, 0.1);
}

.text-navy { color: var(--navy); }

/* --- Master Admin navbar  Styles --- */
:root {
    --navy: #002244;
    --primary: #2563eb;
    --soft-bg: #f4f7fe;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

body.admin-body {
    background-color: var(--soft-bg);
    font-family: 'Inter', sans-serif;
}

/* Tab Navigation */
.tab-btn {
    padding: 10px 24px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.active-tab {
    background: var(--navy) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(0, 34, 68, 0.2);
}

/* Cards & Inputs */
.admin-card-white {
    background: var(--white);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.admin-label {
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.admin-input {
    width: 100%;
    padding: 14px 18px;
    background-color: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.admin-input:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Action Buttons */
.btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    transition: all 0.2s ease;
}

.btn-view { background: #eff6ff; color: #2563eb; }
.btn-view:hover { background: #2563eb; color: white; }

.btn-edit { background: #f0fdf4; color: #16a34a; }
.btn-edit:hover { background: #16a34a; color: white; }

.btn-delete { background: #fef2f2; color: #dc2626; }
.btn-delete:hover { background: #dc2626; color: white; }

/* Table Styling */
.admin-table-custom tbody tr {
    background: white;
    transition: all 0.3s ease;
}

.admin-table-custom tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Modal UI */
.modal-content {
    border-radius: 30px !important;
    overflow: hidden;
}

.admin-save-btn {
    border-radius: 18px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 16px;
    border: none;
    transition: 0.3s;
}

.admin-save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 34, 68, 0.25);
}
/* Main Website Link Styling */
.main-website-link {
    color: #2563eb !important;
    font-weight: 700 !important;
    background-color: #f0f9ff;
    border: 1px solid #bfdbfe;
    padding: 10px 16px !important;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s;
}

.main-website-link:hover {
    background-color: #dbeafe;
    color: #1e40af !important;
    transform: translateY(-1px);
}

.main-website-link i {
    color: #3b82f6;
}
/* navar admin css */
/* --- Navbar Fix & Modern Dropdown Styling --- */

/* Dropdown Container */
.custom-dropdown {
    position: relative;
    padding-bottom: 10px; /* Bridge gap to prevent closing on hover move */
    margin-bottom: -10px;
}

/* Dropdown Menu Box */
.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 8px;
    z-index: 9999;
    
    /* Animation Properties */
    display: block; /* Hidden using opacity/visibility for smoother transition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Prevents accidental clicks when hidden */
}

/* Hover State */
.custom-dropdown:hover .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Re-enable clicks when visible */
}

/* Dropdown Items Styling */
.custom-dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    margin-bottom: 2px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.custom-dropdown-menu a:last-child {
    margin-bottom: 0;
}

/* Icon box inside dropdown */
.custom-dropdown-menu a i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    margin-right: 12px;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Item Hover Effect */
.custom-dropdown-menu a:hover {
    background-color: rgba(37, 99, 235, 0.05) !important;
    color: #2563eb !important;
}

.custom-dropdown-menu a:hover i {
    background-color: #2563eb;
    color: #ffffff;
}

/* Active State for Dropdown Items */
.custom-dropdown-menu a.active {
    background-color: #f0f7ff !important;
    color: #2563eb !important;
}