@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary-color: #0D4C92; /* A deep, professional blue */
    --secondary-color: #59C1BD; /* A calming teal/turquoise */
    --accent-color: #F4A261; /* A warm, inviting orange accent */
    --text-dark: #333333;
    --text-light: #6c757d;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-family: 'Tajawal', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    font-family: var(--font-family);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    font-weight: 700;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 2.8rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

/* --- Header & Navbar --- */
#main-header {
    background-color: var(--background-white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

.admin-links {
    position: absolute;
    top: 15px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.admin-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: row-reverse;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.menu-btn {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    cursor: pointer;
    color: var(--background-white);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.menu-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.menu-btn:hover:before {
    left: 100%;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.menu-btn:active {
    transform: translateY(0);
}

/* --- Sidebar --- */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow-x: hidden;
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 0 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 25px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .close-btn {
    font-size: 2.5rem;
    color: var(--background-white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 30px 0;
    text-align: right;
}

.sidebar-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--background-white);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-link {
    padding: 18px 25px;
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--background-white);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar-link:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.sidebar-link:hover:before {
    width: 100%;
}

.sidebar-link:hover {
    color: var(--background-white);
    padding-right: 35px;
    transform: translateX(-5px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-link:last-of-type {
    border-bottom: none;
}

.sidebar-link span {
    margin-right: 15px;
    font-weight: 500;
}

.sidebar-link:before {
    content: '🏥';
    margin-left: 15px;
    font-size: 1.2rem;
}

.sidebar-link[href*="admin"]:before {
    content: '⚙️';
}

.sidebar hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 25px;
}

/* --- Main Content --- */
main {
    flex-grow: 1;
}

#doctor-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(13, 76, 146, 0.7), rgba(13, 76, 146, 0.7)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    color: var(--background-white);
    text-align: center;
    padding: 100px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--background-white);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btn {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 15px 30px;
}

.hero-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* --- How It Works Section --- */
.how-it-works {
    background-color: var(--background-white);
    padding: 60px 0;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.step {
    flex-basis: 300px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: var(--background-white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 4px solid var(--background-white);
    box-shadow: 0 0 0 4px var(--secondary-color);
}

.step h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Enhanced Doctor Card --- */
.doctor-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.doctor-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.doctor-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.doctor-card:hover:before {
    opacity: 0.05;
}

.doctor-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    position: relative;
}

.doctor-card:hover .doctor-image {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.card-content h3 {
    margin: 10px 0 8px 0;
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.doctor-card:hover .card-content h3 {
    color: var(--secondary-color);
}

.specialty {
    color: var(--text-light);
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.doctor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: var(--background-light);
    border-radius: 8px;
    font-size: 0.9rem;
}

.experience {
    color: var(--primary-color);
    font-weight: 600;
}

.price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
}

.card-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: auto;
}

.no-doctors-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.no-doctors-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.no-doctors-message p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Specialties Section --- */
#specialties-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.specialty-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.specialty-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.specialty-icon {
    font-size: 4rem;
    padding: 30px 20px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    position: relative;
}

.specialty-icon:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--background-white);
    border-radius: 50% 50% 0 0;
}

.specialty-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.specialty-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.doctor-count {
    color: var(--text-light);
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 500;
}

.specialty-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--background-white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.specialty-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.section-button-container {
    text-align: center;
    margin-top: 40px;
}

.section-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.no-specialties {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* --- Login Pages --- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
}

.login-card {
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-header .logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-header .logo span {
    color: var(--secondary-color);
}

.login-header h1 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.login-form {
    text-align: right;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 16px;
}

.error-message {
    background: #ffe6e6;
    color: var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #ffcccc;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--background-light);
}

.login-footer .back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-footer .back-link:hover {
    color: var(--primary-color);
}

/* --- Password Management Section --- */
.password-management-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 30px 0;
}

.password-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.password-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.password-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.password-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.password-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.password-display input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--background-white);
}

.password-display input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.small-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 40px;
}

.password-actions {
    display: flex;
    gap: 10px;
}

.close-section-btn {
    background: var(--text-light);
    font-size: 0.9rem;
    padding: 8px 16px;
}

.close-section-btn:hover {
    background: var(--danger-color);
}

/* --- Enhanced Modal Styles --- */
.enhanced-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.enhanced-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-family);
}

/* --- Responsive Design Improvements --- */
@media (max-width: 768px) {
    .enhanced-modal .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-section {
        padding: 15px;
    }

    .password-cards {
        grid-template-columns: 1fr;
    }

    .login-card {
        margin: 10px;
        padding: 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .stats-card {
        padding: 15px;
    }

    .doctor-card {
        padding: 15px;
    }

    .modal-content {
        padding: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* --- Dynamic Doctor Profile Styles --- */
.doctor-profile-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    overflow: hidden;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px;
    gap: 40px;
    background: linear-gradient(135deg, rgba(13, 76, 146, 0.05), rgba(46, 125, 50, 0.05));
}

.doctor-image-container {
    position: relative;
    flex-shrink: 0;
}

.doctor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--background-white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--background-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.status-badge.active {
    background: var(--success-color);
}

.status-badge.inactive {
    background: var(--danger-color);
}

.doctor-info {
    flex: 1;
    min-width: 300px;
}

.doctor-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.doctor-specialty {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.doctor-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 120px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.doctor-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.languages-label {
    font-weight: 600;
    color: var(--text-dark);
}

.languages-text {
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: 20px;
    padding: 30px 40px;
    background: var(--background-light);
    justify-content: center;
    flex-wrap: wrap;
}

.profile-details {
    padding: 40px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.detail-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* --- Breadcrumb Styles --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--secondary-color);
}

.breadcrumb-separator {
    color: var(--text-light);
    font-weight: 600;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Responsive Design for Doctor Profile --- */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .doctor-image {
        width: 150px;
        height: 150px;
    }

    .doctor-name {
        font-size: 2rem;
    }

    .doctor-specialty {
        font-size: 1.1rem;
    }

    .doctor-stats {
        justify-content: center;
        gap: 15px;
    }

    .stat-item {
        min-width: 100px;
        padding: 12px 15px;
    }

    .profile-actions {
        flex-direction: column;
        padding: 25px 20px;
    }

    .profile-actions .btn {
        width: 100%;
        text-align: center;
    }

    .profile-details {
        padding: 25px 20px;
    }

    .breadcrumb {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* --- Enhanced Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--background-white);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: 2px solid transparent;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.profile-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid transparent;
}

.profile-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 8px 25px rgba(13, 76, 146, 0.4);
}

/* --- Doctor Profile Page --- */
.profile-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    overflow: hidden;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px;
    gap: 40px;
    background: linear-gradient(to top, #eef, var(--background-white));
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--background-white);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.profile-title h1 {
    text-align: right;
    margin: 0;
    font-size: 3rem;
}

.profile-title .specialty {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.status {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.profile-body {
    padding: 40px;
}

.profile-body p {
    font-size: 1.1rem;
}

.profile-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.large-btn {
    padding: 18px 30px;
    font-size: 1.2rem;
    flex-grow: 1;
    text-align: center;
}

.pay-btn {
    background-color: var(--primary-color);
}

.pay-btn:hover {
    background-color: #0B3E75;
    transform: scale(1.05);
}

/* --- Dashboard Forms --- */
.dashboard-form {
    background-color: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(89, 193, 189, .25);
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
}

.submit-btn:hover {
    background-color: #0B3E75;
}

/* --- Switch Toggle --- */
.switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Admin Dashboard --- */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 5px solid var(--primary-color);
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.stat-card p {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.doctors-table-section h2 {
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

#doctors-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

#doctors-table th, #doctors-table td {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

#doctors-table thead {
    background-color: var(--background-light);
}

#doctors-table th {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

#doctors-table tbody tr:last-child td {
    border-bottom: none;
}

#doctors-table tbody tr:hover {
    background-color: #eef;
}

.action-btn {
    padding: 8px 12px;
    margin-left: 5px;
    font-size: 0.9rem;
}

.edit-btn { background-color: var(--primary-color); }
.delete-btn { background-color: var(--danger-color); }
.toggle-status-btn { background-color: var(--accent-color); color: var(--text-dark); }

/* --- Footer --- */
#main-footer {
    background-color: var(--text-dark);
    color: var(--background-light);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
/* --- Responsive Nav Links --- */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 250px;
    padding: 15px 0;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--background-light);
    color: var(--primary-color);
    padding-right: 25px;
}

.dropdown-divider {
    height: 1px;
    background: var(--background-light);
    margin: 10px 15px;
}

.view-all-link {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.view-all-link:hover {
    background: var(--primary-color) !important;
    color: var(--background-white) !important;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .dropdown-menu {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .logo {
        order: 3;
        position: static;
        transform: none;
    }
}

/* --- New Footer Styles --- */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 2rem;
    text-align: right;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.logo-footer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--background-white);
    margin-bottom: 1rem;
}

.logo-footer span {
    color: var(--secondary-color);
}

.footer-section h3 {
    color: var(--background-white);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: var(--background-white);
    position: relative;
    overflow: hidden;
}

.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover:before {
    opacity: 1;
}

.social-link.facebook:hover {
    background: #1877f2;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.social-link.twitter:hover {
    background: #1da1f2;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-link.linkedin:hover {
    background: #0077b5;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-link svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* --- Utility Styles --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(13, 76, 146, 0.3);
    transition: all 0.3s ease;
    border: none;
    width: fit-content;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.back-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.back-link:hover:before {
    left: 100%;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 76, 146, 0.4);
    color: var(--background-white);
}

.back-link:active {
    transform: translateY(-1px);
}

/* --- Animations --- */
.fade-in {
    animation: fadeInAnimation 0.8s ease-in-out forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Enhanced Doctor Dashboard Styles --- */
.profile-preview-section {
    background: linear-gradient(135deg, var(--background-white), var(--background-light));
    border-radius: var(--border-radius);
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(89, 193, 189, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-preview-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.profile-preview-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
}

.profile-preview-section h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.preview-card {
    max-width: 420px;
    margin: 0 auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.preview-card:hover {
    transform: scale(0.98);
}

.dashboard-form {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(13, 76, 146, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--primary-color));
}

.dashboard-form h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.dashboard-form h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
}

.form-group label:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.form-group:focus-within label:after {
    width: 30px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: var(--background-white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(13, 76, 146, 0.15);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.image-upload-group {
    position: relative;
}

.image-upload-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-upload-container input[type="url"] {
    flex: 1;
}

.upload-btn {
    background: var(--secondary-color);
    color: var(--background-white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upload-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.switch-group {
    background: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(89, 193, 189, 0.2);
    margin-bottom: 30px;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--success-color), #4CAF50);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

#status-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--background-light);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(13, 76, 146, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover:before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 76, 146, 0.4);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--text-light), #6c757d);
    color: var(--background-white);
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, var(--text-dark), #495057);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.4);
}

.status.active {
    color: var(--success-color);
    font-weight: 600;
}

.status.inactive {
    color: var(--danger-color);
    font-weight: 600;
}

/* --- Notification Styles --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--background-white);
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: var(--success-color);
}

.notification.warning {
    background: var(--accent-color);
}

.notification.info {
    background: var(--primary-color);
}

.notification button {
    background: none;
    border: none;
    color: var(--background-white);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
}

/* --- Enhanced Global Notifications --- */
.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 350px;
    max-width: 500px;
    z-index: 10001;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    position: relative;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--background-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Enhanced Admin Dashboard Styles --- */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-light);
}

.stat-content h3 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.stat-content p {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-content small {
    color: var(--text-light);
    font-size: 0.9rem;
}

.total-doctors .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.active-doctors .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.inactive-doctors .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.revenue .stat-icon {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #8B4513;
}

/* Quick Actions */
.quick-actions-section {
    margin-bottom: 40px;
}

.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.action-icon {
    font-size: 1.2rem;
}

/* Doctors Management */
.doctors-management-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filters select,
.filters input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.admin-doctor-card {
    background: var(--background-white);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.admin-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.admin-doctor-card.active {
    border-color: var(--success-color);
}

.admin-doctor-card.inactive {
    border-color: var(--danger-color);
    opacity: 0.8;
}

.card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--background-light);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--background-white);
}

.doctor-info h3 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.doctor-info .specialty {
    margin: 0 0 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-body {
    padding: 20px;
}

.doctor-details p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.card-actions {
    padding: 15px 20px;
    background: var(--background-light);
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.card-actions .action-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-actions .action-btn:hover {
    background: var(--primary-color);
    color: var(--background-white);
    transform: scale(1.1);
}

.card-actions .delete-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.card-actions .toggle-btn.activate:hover {
    background: var(--success-color);
    border-color: var(--success-color);
}

.card-actions .toggle-btn.deactivate:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: var(--background-white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-form {
    padding: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.no-doctors {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 40px;
    background: var(--background-light);
    border-radius: var(--border-radius);
}

/* Responsive Design for Admin Dashboard */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        flex-direction: column;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        flex-direction: column;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .card-actions {
        flex-wrap: wrap;
    }

    .doctor-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* --- Loading Animation --- */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Pulse Animation for Active Status --- */
.status.active:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Enhanced Focus States --- */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 3px solid rgba(13, 76, 146, 0.3);
    outline-offset: 2px;
}

/* --- Tooltip Styles --- */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--background-white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* --- All Doctors Page Styles --- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-description {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 10px;
}

.filters-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: var(--font-family);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.results-section {
    margin-bottom: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: var(--background-light);
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: var(--background-white);
    border-color: var(--primary-color);
}

.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doctor-list-item {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.doctor-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.doctor-list-item.inactive {
    opacity: 0.7;
    border-color: var(--danger-color);
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--background-light);
}

.doctor-info {
    flex: 1;
}

.doctor-info h3 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.doctor-info .specialty {
    margin: 0 0 10px 0;
    color: var(--text-light);
    font-size: 1rem;
}

.doctor-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.doctor-details .experience {
    color: var(--primary-color);
    font-weight: 600;
}

.doctor-details .price {
    color: var(--accent-color);
    font-weight: 700;
}

.doctor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    grid-column: 1 / -1;
}

.no-results h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* --- All Specialties Page Styles --- */
.specialties-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--background-white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.specialty-card-detailed {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.specialty-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.specialty-card-detailed.available {
    border-color: var(--success-color);
}

.specialty-card-detailed.available:hover {
    border-color: var(--secondary-color);
}

.specialty-card-detailed.unavailable {
    border-color: var(--danger-color);
    opacity: 0.8;
}

.specialty-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--background-white);
}

.specialty-header .specialty-icon {
    font-size: 2.5rem;
}

.status-indicator {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(255,255,255,0.2);
}

.status-indicator.available {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.status-indicator.unavailable {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
}

.specialty-content {
    padding: 25px;
}

.specialty-content h3 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.specialty-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat {
    text-align: center;
    padding: 15px 10px;
    background: var(--background-light);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.specialty-actions {
    text-align: center;
}

.specialty-view-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--background-white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.specialty-view-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.specialty-disabled-btn {
    background: var(--text-light);
    color: var(--background-white);
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- Specialty Page Styles --- */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--secondary-color);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

.specialty-header-info {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.specialty-icon-large {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.specialty-details h1 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: right;
}

.specialty-description {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.specialty-stats-inline {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-inline {
    color: var(--text-dark);
    font-size: 1rem;
}

.stat-inline strong {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.related-specialties-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--background-light);
}

.related-specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-specialty-card {
    background: var(--background-white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-specialty-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-specialty-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.related-specialty-card h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.related-specialty-card p {
    margin: 0 0 20px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.related-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--background-white);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.related-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    grid-column: 1 / -1;
}

.error-message h3 {
    color: var(--danger-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.error-message p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* --- Responsive Design for Specialty Page --- */
@media (max-width: 768px) {
    .specialty-header-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .specialty-icon-large {
        width: 100px;
        height: 100px;
        font-size: 4rem;
    }

    .specialty-details h1 {
        font-size: 2rem;
        text-align: center;
    }

    .specialty-stats-inline {
        justify-content: center;
        gap: 20px;
    }

    .related-specialties-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* --- Doctor Dashboard Selection Styles --- */
.doctors-filter-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filter-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.doctors-list-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.doctors-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.doctor-selection-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.doctor-selection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.doctor-selection-card.active {
    border-color: var(--success-color);
}

.doctor-selection-card.inactive {
    border-color: var(--danger-color);
    opacity: 0.8;
}

.doctor-selection-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-selection-card:hover .doctor-selection-image {
    transform: scale(1.05);
}

.doctor-selection-content {
    padding: 20px;
}

.doctor-selection-content h3 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.doctor-selection-content .specialty {
    margin: 0 0 15px 0;
    color: var(--text-light);
    font-size: 1rem;
}

.doctor-selection-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.doctor-selection-meta .experience {
    color: var(--primary-color);
    font-weight: 600;
}

.doctor-selection-meta .price {
    color: var(--accent-color);
    font-weight: 700;
}

.selection-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--background-light);
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.doctor-selection-card:hover .selection-action {
    background: var(--primary-color);
    color: var(--background-white);
}

.edit-icon {
    font-size: 1.2rem;
}

.instructions-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.instruction-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.instruction-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-card li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-right: 25px;
}

.instruction-card li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

.no-doctors-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.no-doctors-found h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.no-doctors-found p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.cancel-btn {
    background: var(--text-light);
    color: var(--background-white);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cancel-btn:hover {
    background: var(--text-dark);
}

/* --- Responsive Design for Doctor Dashboard --- */
@media (max-width: 768px) {
    .filter-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .doctors-selection-grid {
        grid-template-columns: 1fr;
    }

    .specialty-header-info {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Legal Pages Styles --- */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.legal-page h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-right: 4px solid var(--secondary-color);
    padding-right: 15px;
}

.legal-section h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
}

.legal-section ul {
    margin: 15px 0;
    padding-right: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-info {
    background: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.contact-info p {
    margin: 8px 0;
    color: var(--text-dark);
}

/* --- FAQ Styles --- */
.faq-page {
    max-width: 900px;
    margin: 0 auto;
}

.faq-page h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.faq-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.faq-category {
    background: var(--background-light);
    border: 2px solid transparent;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.faq-category:hover {
    background: var(--secondary-color);
    color: var(--background-white);
}

.faq-category.active {
    background: var(--primary-color);
    color: var(--background-white);
    border-color: var(--primary-color);
}

.faq-category-content {
    display: none;
}

.faq-category-content.active {
    display: block;
}

.faq-item {
    background: var(--background-white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--background-white), var(--background-light));
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.faq-contact {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.faq-contact h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-btn {
    background: var(--background-white);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 20px 25px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: var(--background-white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-form {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--background-light);
}

.modal-actions .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

/* --- Image Upload Styles --- */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(13, 76, 146, 0.05), rgba(46, 125, 50, 0.05));
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(13, 76, 146, 0.1), rgba(46, 125, 50, 0.1));
    transform: translateY(-2px);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--background-light);
    border-radius: 12px;
    background: var(--background-white);
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.change-image-btn {
    background: linear-gradient(135deg, var(--secondary-color), #28a745);
    color: var(--background-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.change-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* --- Responsive Design for Legal Pages --- */
@media (max-width: 768px) {
    .legal-page {
        padding: 25px;
        margin: 10px;
    }

    .legal-page h1 {
        font-size: 2rem;
    }

    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .faq-category {
        width: 200px;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 200px;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* --- Print Styles --- */
@media print {
    .sidebar,
    .menu-btn,
    .notification,
    .modal,
    .card-actions,
    .quick-actions,
    .filters-section,
    .view-toggle,
    .specialties-stats,
    .related-specialties-section,
    .doctors-filter-section,
    .instructions-section,
    .faq-categories,
    .contact-buttons {
        display: none !important;
    }

    .doctor-card,
    .admin-doctor-card,
    .doctor-list-item,
    .specialty-card-detailed,
    .doctor-selection-card,
    .legal-section,
    .faq-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }

    .faq-answer {
        max-height: none !important;
        padding: 10px 0 !important;
    }
}

/* --- Contact Links Styles --- */
.contact-email,
.contact-phone {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover,
.contact-phone:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- Links Management Button Styles --- */
.links-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    transition: all 0.3s ease;
}

.links-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* --- Enhanced Modal Animations --- */
.modal {
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal.hide {
    opacity: 0;
    visibility: hidden;
}

/* ===== JOIN US PAGE STYLES ===== */
.join-us-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.join-us-intro {
    margin-bottom: 2rem;
}

.intro-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.intro-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.benefits-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.application-form-container {
    margin: 2rem 0;
}

.form-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.form-card h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.join-us-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.requirements-section {
    margin-top: 2rem;
}

.requirements-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-right: 4px solid #667eea;
}

.requirements-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.requirements-list li:last-child {
    border-bottom: none;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-body p {
    margin: 0.5rem 0;
    color: #666;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-content button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

/* Responsive Design for Join Us Page */
@media (max-width: 768px) {
    .join-us-content {
        gap: 1.5rem;
    }

    .intro-card {
        padding: 1.5rem;
    }

    .intro-card h2 {
        font-size: 1.5rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .requirements-card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    /* Notifications responsive */
    #notifications-modal .modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 95vh;
    }

    .notifications-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .notifications-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .notification-item {
        padding: 1rem;
    }

    .notification-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .small-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== NOTIFICATIONS SYSTEM STYLES ===== */
.notification-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 5px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* Notifications Modal Specific Styles */
#notifications-modal {
    z-index: 10000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
}

#notifications-modal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    margin: 3% auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    background: white;
    position: relative;
}

.notifications-container {
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.notifications-header {
    background: white;
    border-bottom: 2px solid #e9ecef;
    padding: 1.5rem;
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
}

.notifications-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: #f1f3f4;
    padding: 0.5rem;
    border-radius: 25px;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    flex: 1;
    text-align: center;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.tab-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.notifications-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 55vh;
    padding: 1rem;
    background: #f8f9fa;
}

/* Custom scrollbar for notifications list */
.notifications-list::-webkit-scrollbar {
    width: 8px;
}

.notifications-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.notification-item {
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.notification-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.notification-item.unread {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-left: 4px solid #667eea;
}

.notification-item.unread::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-item.read {
    background: #ffffff;
    opacity: 0.85;
}

.notification-item.expanded {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.notification-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-type .notification-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.notification-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.85rem;
    color: #8e9aaf;
    font-weight: 500;
    background: #f1f3f4;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    white-space: nowrap;
}

.notification-message {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.notification-preview {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-full-content {
    display: none;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 3px solid #667eea;
}

.notification-full-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 1rem;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding: 1rem;
    }
}

.notification-actions {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem 0;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.notification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
}

.notification-status.approved {
    color: #38a169;
}

.notification-status.rejected {
    color: #e53e3e;
}

.notification-status.pending {
    color: #d69e2e;
}

.expand-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a6fd8;
}

.btn-link {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: #e74c3c;
}

.no-notifications {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-notifications-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-notifications h4 {
    margin-bottom: 0.5rem;
    color: #999;
}

.no-notifications p {
    color: #bbb;
}

/* Small button styles */
.small-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 15px;
}

.small-btn.success {
    background: #28a745;
    color: white;
    border: none;
}

.small-btn.success:hover {
    background: #218838;
}

.small-btn.danger {
    background: #dc3545;
    color: white;
    border: none;
}

.small-btn.danger:hover {
    background: #c82333;
}

/* Enhanced notification elements */
.tab-count {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 5px;
    min-width: 16px;
    text-align: center;
}

.tab-btn .tab-count:empty {
    display: none;
}

.unread-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    margin-right: 8px;
}

.application-details {
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

.application-details h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.detail-item p {
    margin: 0.5rem 0 0 0;
    color: #4a5568;
    line-height: 1.5;
}

.notification-details {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    color: #4a5568;
    line-height: 1.6;
}

/* Modal header improvements */
#notifications-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

#notifications-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Responsive improvements for notifications */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .notification-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .notification-type {
        width: 100%;
    }

    .notification-time {
        align-self: flex-end;
    }
}

/* ===== PAYMENT INSTRUCTIONS STYLES ===== */
.payment-instructions {
    margin: 2rem 0;
    padding: 0 1rem;
}

.instruction-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.instruction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.instruction-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.instruction-step:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.instruction-step p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive design for payment instructions */
@media (max-width: 768px) {
    .payment-instructions {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }

    .instruction-card {
        padding: 1.5rem;
    }

    .instruction-card h3 {
        font-size: 1.1rem;
    }

    .instruction-step {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .instruction-step p {
        font-size: 0.9rem;
    }
}

/* ===== PAYMENT CONFIRMATION MODAL STYLES ===== */
.payment-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.payment-confirmation-modal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.payment-confirmation-modal h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.payment-confirmation-modal p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.confirmation-note {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem !important;
    color: #2d3748 !important;
    font-weight: 500;
}

.confirmation-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.confirmation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for payment confirmation */
@media (max-width: 768px) {
    .payment-confirmation-modal {
        padding: 2rem;
        margin: 1rem;
    }

    .confirmation-icon {
        font-size: 2.5rem;
    }

    .payment-confirmation-modal h3 {
        font-size: 1.1rem;
    }
}

/* ===== SUPPORT SERVICES SECTION STYLES ===== */
.support-services-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 4rem 0;
    margin: 3rem 0;
    border-top: 1px solid #e3f2fd;
    border-bottom: 1px solid #e3f2fd;
}

.support-services-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.support-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.support-btn {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.support-btn:hover::before {
    transform: scaleX(1);
}

.support-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.support-btn h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.support-btn p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.secretary-btn:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-color: #667eea;
}

.support-btn:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-color: #667eea;
}

/* Responsive design for support services */
@media (max-width: 768px) {
    .support-services-section {
        padding: 3rem 0;
        margin: 2rem 0;
    }

    .support-services-section h2 {
        font-size: 1.8rem;
    }

    .support-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .support-buttons-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .support-btn {
        padding: 1.5rem 1rem;
    }

    .support-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .support-btn h3 {
        font-size: 1.2rem;
    }
}

/* ===== SECRETARY AND SUPPORT PAGES STYLES ===== */
.secretary-content,
.support-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.intro-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.intro-card h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.intro-description {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.form-card h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 1rem;
}

.secretary-form,
.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.field-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: center;
    min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.info-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border: 1px solid #bee3f8;
    border-radius: 15px;
    padding: 2rem;
    border-left: 4px solid #667eea;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    line-height: 1.6;
    position: relative;
    padding-right: 2rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0.75rem;
    color: #667eea;
    font-weight: bold;
}

/* Support Categories Styles */
.support-categories {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.support-categories h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.category-card.active {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-card p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* FAQ Section Styles */
.faq-section {
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.faq-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive design for secretary and support pages */
@media (max-width: 768px) {
    .secretary-content,
    .support-content {
        padding: 1rem 0.5rem;
        gap: 1.5rem;
    }

    .intro-card {
        padding: 2rem 1.5rem;
    }

    .intro-card h1 {
        font-size: 1.8rem;
    }

    .intro-description {
        font-size: 1rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .submit-btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===== SECRETARY DASHBOARD STYLES ===== */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.dashboard-subtitle {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.notifications-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.notifications-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.refresh-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.mail-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mail-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== SERVICES CARDS STYLES ===== */
.services-cards-section {
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.support-card:hover {
    border-color: #fd7e14;
    box-shadow: 0 15px 40px rgba(253, 126, 20, 0.2);
}

.support-card::before {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-avatar {
    position: relative;
    flex-shrink: 0;
}

.service-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-card:hover .service-avatar img {
    border-color: #667eea;
    transform: scale(1.1);
}

.support-card:hover .service-avatar img {
    border-color: #fd7e14;
}

.service-status {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #28a745;
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.service-status.online {
    background: #28a745;
}

.service-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.service-title {
    color: #718096;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.service-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.support-card .stat-item .stat-number {
    color: #fd7e14;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: #718096;
}

.service-actions {
    text-align: center;
}

.service-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.support-card .service-btn {
    background: white;
    color: #fd7e14;
    border: 2px solid #fd7e14;
}

.service-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.support-card .service-btn:hover {
    background: #fd7e14;
    color: white;
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.3);
}

/* Quick Stats Section */
.quick-stats-section {
    margin-bottom: 2rem;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.quick-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.quick-stat-label {
    color: #718096;
    font-size: 0.85rem;
}

/* ===== SIMPLIFIED REQUEST/TICKET ITEMS ===== */
.simple-request-item,
.simple-ticket-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.simple-request-item:hover,
.simple-ticket-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.simple-request-header,
.simple-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.simple-request-info h4,
.simple-ticket-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-type,
.ticket-description {
    color: #718096;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.request-date,
.ticket-date {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.simple-request-status,
.simple-ticket-status {
    text-align: left;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending,
.status-badge.open {
    background: #fff3cd;
    color: #856404;
}

.status-badge.completed,
.status-badge.resolved {
    background: #d4edda;
    color: #155724;
}

.simple-request-actions,
.simple-ticket-actions {
    text-align: center;
    margin-top: 1rem;
}

.completed-text {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Large Modal Styles */
.large-modal {
    max-width: 1000px;
    width: 95%;
}

.dashboard-actions-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    justify-content: center;
}

.requests-section,
.tickets-section {
    margin-top: 1rem;
}

.requests-section h4,
.tickets-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Responsive design for new elements */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .quick-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quick-stat-card {
        padding: 1rem;
    }

    .simple-request-header,
    .simple-ticket-header {
        flex-direction: column;
        gap: 1rem;
    }

    .simple-request-status,
    .simple-ticket-status {
        text-align: right;
    }

    .dashboard-actions-bar {
        flex-direction: column;
        align-items: center;
    }

    .large-modal {
        width: 98%;
        margin: 1% auto;
    }
}

/* ===== CONTROL DASHBOARD STYLES ===== */
.control-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.control-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.control-title h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.control-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.control-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.control-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.logout-btn {
    background: rgba(220, 53, 69, 0.2) !important;
    color: white !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.8) !important;
    border-color: #dc3545 !important;
}

/* ===== LOADING SCREEN STYLES ===== */
.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.loading-content {
    text-align: center;
    color: #2c3e50;
}

.loading-content h2 {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #667eea;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.control-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-stats .stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.control-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.control-stats .stat-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.control-stats .stat-content {
    flex: 1;
}

.control-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.control-stats .stat-label {
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
}

.control-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.control-content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 1rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    text-align: left;
}

.control-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.control-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.control-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-item-header:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.control-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.control-item-info .service-type,
.control-item-info .ticket-description {
    color: #718096;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    line-height: 1.4;
}

.control-item-info .request-date,
.control-item-info .ticket-date {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.request-preview,
.ticket-description {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0.5rem 0;
    font-style: italic;
}

/* Details Modal Styles */
.request-details-grid,
.ticket-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.request-content,
.ticket-content {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

.request-content-full {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #667eea;
    line-height: 1.8;
    color: #2c3e50;
    white-space: pre-wrap;
    font-size: 1rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.request-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.copy-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.report-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.device-info {
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #475569;
    white-space: pre-line;
}

.control-item-status {
    text-align: left;
}

.control-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 1rem;
}

.ticket-selection {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c3e50;
    gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #28a745;
    border-color: #28a745;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkmark:hover {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.no-items {
    text-align: center;
    padding: 3rem;
    color: #718096;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

/* Responsive design for control dashboards */
@media (max-width: 768px) {
    .control-dashboard {
        padding: 1rem 0.5rem;
    }

    .control-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .control-title {
        flex-direction: column;
        text-align: center;
    }

    .control-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .control-title h1 {
        font-size: 1.5rem;
    }

    .control-actions {
        justify-content: center;
        width: 100%;
    }

    .control-actions .btn {
        flex: 1;
        min-width: 120px;
    }

    .control-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .control-stats .stat-card {
        padding: 1.5rem;
    }

    .control-content {
        padding: 1.5rem;
    }

    .control-item {
        padding: 1rem;
    }

    .control-item-header {
        flex-direction: column;
        gap: 1rem;
    }

    .control-item-status {
        text-align: right;
    }

    .control-item-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .ticket-selection {
        order: 2;
    }
}

.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.stat-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #718096;
    font-size: 0.85rem;
}

.tabs-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tabs-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.tabs-header .tab-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tabs-header .tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tabs-header .tab-btn:hover:not(.active) {
    background: #f1f3f4;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.tab-controls {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters select,
.filters input {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.filters input {
    min-width: 250px;
}

.requests-list,
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-item,
.ticket-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.request-item:hover,
.ticket-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.request-header,
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.request-info h3,
.ticket-info h3 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.organization,
.user-name {
    color: #718096;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.service-type,
.category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.request-meta,
.ticket-meta {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.pending,
.status.open {
    background: #fff3cd;
    color: #856404;
}

.status.in-progress {
    background: #cce5ff;
    color: #004085;
}

.status.completed,
.status.resolved {
    background: #d4edda;
    color: #155724;
}

.status.cancelled,
.status.closed {
    background: #f8d7da;
    color: #721c24;
}

.priority {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.priority.urgent {
    background: #f8d7da;
    color: #721c24;
}

.priority.high {
    background: #ffeaa7;
    color: #b8860b;
}

.priority.medium {
    background: #cce5ff;
    color: #004085;
}

.priority.low {
    background: #d4edda;
    color: #155724;
}

.date {
    color: #718096;
    font-size: 0.8rem;
}

.request-details,
.ticket-details {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.request-details p,
.ticket-details p {
    margin: 0.25rem 0;
}

.description {
    color: #718096;
    font-style: italic;
}

.request-actions,
.ticket-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.no-items {
    text-align: center;
    padding: 3rem;
    color: #718096;
    font-size: 1.1rem;
}

/* Detail Modal Styles */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.detail-section p {
    margin: 0.5rem 0;
    color: #4a5568;
    line-height: 1.5;
}

.request-description,
.issue-description {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    line-height: 1.6;
    color: #2c3e50;
}

.device-info {
    background: #f1f3f4;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #4a5568;
    white-space: pre-line;
}

/* Responsive design for secretary dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tabs-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tabs-header .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .tab-content {
        padding: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters input {
        min-width: auto;
        width: 100%;
    }

    .request-header,
    .ticket-header {
        flex-direction: column;
        gap: 1rem;
    }

    .request-meta,
    .ticket-meta {
        align-items: flex-start;
        text-align: right;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== MAIL MODAL STYLES ===== */
.mail-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mail-form .form-group {
    display: flex;
    flex-direction: column;
}

.mail-form label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mail-form input,
.mail-form select,
.mail-form textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

.mail-form input:focus,
.mail-form select:focus,
.mail-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mail-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.mail-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    line-height: 1.6;
    color: #2c3e50;
    white-space: pre-wrap;
}

/* Report Type Select Styling */
#report-type {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

#report-type:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Report type options styling */
#report-type option {
    padding: 0.5rem;
    background: white;
    color: #2c3e50;
}

/* Mail details in notifications */
.mail-details {
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

.mail-details h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* ===== SECRETARY PROFILE STYLES ===== */
.dashboard-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.contact-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.support-btn {
    background: white;
    color: #2c3e50;
    border: 2px solid #e3f2fd;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.service-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-right: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #28a745;
    font-weight: bold;
}

.working-hours {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.day-hours.emergency {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.day {
    font-weight: 600;
    color: #2c3e50;
}

.hours {
    color: #4a5568;
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.contact-value {
    color: #4a5568;
    margin-top: 0.25rem;
}

.response-times {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.response-item.urgent {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.response-type {
    font-weight: 600;
    color: #2c3e50;
}

.response-time {
    color: #4a5568;
    font-weight: 500;
}

/* Responsive design for secretary profile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .day-hours {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .response-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}