/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: blue;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333;
    --text-light: #7f8c8d;
    --text-bright: black;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f7fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: blue;
    color: white;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #bdc3c7;
    color: var(--dark-color);
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    line-height: 1;
}

.logo h1 img {
    height: 2rem; /* or whatever size matches your design */
    vertical-align: middle;
}

.logo h1 span {
    color: var(--secondary-color);
}

.logo p {
    font-size: 0.8rem;
    color: var(--text-bright);
    align-self: flex-end;
    margin-top: -5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}


/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #2c3e50;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 80px 20px 40px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.mobile-nav a:hover::before,
.mobile-nav a:focus::before {
    left: 0;
}

/* Overlay when mobile nav is active */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close button for mobile nav */
.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-close-btn:hover {
    transform: rotate(90deg);
}

/* Responsive styles */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Animation for menu toggle icon */
    .mobile-menu-toggle.active i::before {
        content: '\f00d';
    }
    
    /* Logo adjustment for mobile */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 40px;
    }
}



/* Updated Hero Section with Background Image */
.hero {
    height: 150vh;
    background-size: 100%; /* Slightly zoomed in */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    transition: background-size 0.5s ease; /* Smooth zoom effect */
}
.hero-content {
    max-width: 600px;
    color: white;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: var(--border-radius);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hero-content .btn {
    margin-right: 10px;
}

/* Quick Appointment Section */
.quick-appointment {
    padding: 50px 0;
    background-color: var(--light-color);
}

.quick-appointment h2 {
    text-align: center;
    margin-bottom: 30px;
}

#quickAppointmentForm {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}


/* Testimonials with Background Image */
.testimonials {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 0 15px;
}

.testimonial-content {
    position: relative;
    padding: 0 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-content p:before {
    top: -15px;
    left: -20px;
}

.testimonial-content p:after {
    bottom: -25px;
    right: -20px;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Ad Sections */
.ad-section {
    padding: 30px 0;
}

.ad-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.ad-content {
    display: flex;
    align-items: center;
}

.ad-content img {
    width: 40%;
    object-fit: cover;
}

.ad-text {
    padding: 30px;
    flex: 1;
}

.ad-text h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.ad-banner {
    padding: 30px;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
}

.ad-banner h3 {
    margin-bottom: 15px;
}

.ad-banner .btn {
    margin-top: 15px;
}

.horizontal-ad .ad-content {
    flex-direction: column;
}

.horizontal-ad .ad-content img {
    width: 100%;
    max-height: 200px;
}

/* Page Header */
.page-header {
    padding: 150px 0 100px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Page */
.about-content {
    display: flex;
    gap: 30px;
    margin: 50px 0;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stats-overlay {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-around;
    box-shadow: var(--box-shadow);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.value-card {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.value-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-details {
    padding: 20px;
    text-align: center;
}

.team-details h3 {
    margin-bottom: 5px;
}

.team-details .role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-details .specialization {
    font-style: italic;
    margin-bottom: 15px;
}

.team-contact p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.team-contact i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h2 {
    margin-bottom: 20px;
}

.info-card {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.info-card p {
    margin-bottom: 5px;
}

.map-container {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin-left: 20px;
}

/* Portal Styles */
.portal-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 30px 0;
}

.portal-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.profile-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary-color);
}

.profile-info h3 {
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.portal-nav ul {
    list-style: none;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.portal-nav li {
    border-bottom: 1px solid #eee;
}

.portal-nav li:last-child {
    border-bottom: none;
}

.portal-nav a {
    display: block;
    padding: 15px;
    color: var(--text-color);
    transition: var(--transition);
}

.portal-nav a:hover,
.portal-nav li.active a {
    background-color: var(--secondary-color);
    color: white;
}

.portal-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.portal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.portal-tab {
    display: none;
}

.portal-tab.active {
    display: block;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.dashboard-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.appointment-list {
    list-style: none;
}

.appointment-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.appointment-date {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 50px;
}

.appointment-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.appointment-date .month {
    font-size: 0.8rem;
    display: block;
    line-height: 1;
}

.appointment-info h4 {
    margin-bottom: 5px;
}

.results-list {
    list-style: none;
}

.results-list li {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    background-color: #e8f5e9;
    border-left: 4px solid var(--success-color);
}

.results-list li.abnormal {
    background-color: #ffebee;
    border-left-color: var(--danger-color);
}

.results-list h4 {
    margin-bottom: 5px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-buttons {
    display: grid;
    gap: 10px;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.appointment-filters {
    margin-bottom: 20px;
}

.appointment-table {
    overflow-x: auto;
}

.appointment-table table {
    width: 100%;
    border-collapse: collapse;
}

.appointment-table th,
.appointment-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.appointment-table th {
    background-color: var(--light-color);
    font-weight: 500;
}

.appointment-table tr.upcoming {
    background-color: #e3f2fd;
}

.appointment-table tr.past {
    opacity: 0.7;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.scheduled {
    background-color: #fff3e0;
    color: #e65100;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.cancelled {
    background-color: #fce4ec;
    color: #c2185b;
}

.status-badge.no-show {
    background-color: #f5f5f5;
    color: #616161;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.result-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border-left: 4px solid #4caf50;
}

.result-card.abnormal {
    border-left-color: var(--danger-color);
}

.result-header {
    padding: 15px;
    background-color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-body {
    padding: 15px;
}

.result-footer {
    padding: 15px;
    background-color: #f9f9f9;
    text-align: center;
}

.doctor-notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.no-results {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Modal Styles */
.booking-modal,
.appointment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #bdc3c7;
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .stats-overlay {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-sidebar {
        position: static;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-content {
        flex-direction: column;
    }
    
    .ad-content img {
        width: 100%;
    }
}
/* Admin Styles */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 140px);
}

.admin-sidebar {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
}

.admin-profile {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.admin-nav ul {
    list-style: none;
    padding: 0 20px;
}

.admin-nav li {
    margin-bottom: 5px;
}

.admin-nav a {
    display: block;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav li.active a {
    background-color: var(--secondary-color);
    color: white;
}

.admin-nav i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.admin-content {
    padding: 30px;
    background-color: #f5f7fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: var(--light-color);
    font-weight: 500;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.auth-section {
    padding: 50px 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 140px);
}

.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links p {
    margin-bottom: 10px;
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    z-index: 1000;
    pointer-events: none;
}

.results-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.result-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-title {
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 5px;
    cursor: pointer;
}

.result-date {
    color: #666;
    font-size: 0.9rem;
}

.result-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}






/* Login page styling */
.auth-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 25px;
    font-size: 28px;
    color: #333333;
}

.auth-container .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.auth-container .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444444;
}

.auth-container .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-container .form-control:focus {
    border-color: #007bff;
    outline: none;
}

.auth-container .btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-container .btn:hover {
    background-color: #0056b3;
}

.auth-container p {
    margin-top: 15px;
    font-size: 14px;
}

.auth-container a {
    color: #007bff;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}




/* Admin Login Body */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    padding: 20px;
}

.auth-section .container {
    max-width: 420px;
    width: 100%;
}

.auth-form {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    margin-bottom: 25px;
    font-size: 28px;
    text-align: center;
    color: #222;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #0056b3;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 6px;
    font-size: 14px;
}

.alert-danger {
    background-color: #ffe3e3;
    color: #b00020;
    border: 1px solid #f5c6cb;
}



/* Sales Dashboard Specific Styles */
.stat-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.stat-details p {
    margin: 5px 0;
    font-size: 0.9em;
}

.payment-method {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.payment-method.cash {
    background-color: #d4edda;
    color: #155724;
}

.payment-method.pos {
    background-color: #cce5ff;
    color: #004085;
}

.payment-method.transfer {
    background-color: #fff3cd;
    color: #856404;
}

.badge-referral {
    background-color: #6f42c1;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    margin-left: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.service-icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: #4e73df;
}

.service-info h3 {
    margin: 0 0 5px 0;
    font-size: 1em;
}

.service-info p {
    margin: 0;
    font-weight: bold;
    color: #2e59d9;
}

.service-info small {
    color: #6c757d;
    font-size: 0.8em;
}

.date-filters {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form .form-group {
    margin-bottom: 0;
}

.filter-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}



/* Advertisement Styles */
.ad-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ad-container:hover {
    transform: translateY(-3px);
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

.ad-sidebar {
    width: 300px;
    margin: 0 auto 20px;
}

.ad-inline {
    width: 100%;
    margin: 30px 0;
}

.ad-content {
    position: relative;
}

.ad-image {
    width: 100%;
    height: auto;
    display: block;
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 15px;
    color: white;
}

.ad-title {
    font-size: 1.2rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.ad-description {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.ad-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ad-sidebar {
        width: 100%;
    }
    
    .ad-banner {
        max-width: 100%;
    }
}


   
    

    /* Preloader Styles */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: blue;
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      transition: opacity 1s ease;
    }

    #preloader.fade-out {
      opacity: 0;
      visibility: hidden;
    }

    /* Logo Animation */
    .preloader-logo {
      width: 80px;
      height: 80px;
      animation: slideInAndGrow 2s forwards; /* Slide in and grow */
    }

    /* Slide and Grow Animation */
    @keyframes slideInAndGrow {
      0% {
        transform: translateX(-200px) scale(0.5);
        opacity: 0;
      }
      50% {
        transform: translateX(0) scale(1);
        opacity: 1;
      }
      100% {
        transform: translateX(0) scale(1.5);
        opacity: 0;
      }
    }

    /* Welcome Text Animation (Bounce In) */
    .welcome-text {
      color: #ffffff;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-size: 32px;
      text-align: center;
      margin-top: 20px;
      opacity: 0;
      animation: bounceIn 1s 2s forwards; /* Bounce in with delay */
    }

    /* Bouncing Animation */
    @keyframes bounceIn {
      0% {
        transform: scale(0);
        opacity: 0;
      }
      60% {
        transform: scale(1.2);
        opacity: 1;
      }
      100% {
        transform: scale(1);
      }
    }
/* Payment Methods */
.payment-methods-breakdown {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.payment-methods-breakdown h2 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods-breakdown h2 i {
    color: var(--info);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.payment-method-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border-left: 4px solid;
}

.payment-method-card.cash {
    border-left-color: var(--success);
}

.payment-method-card.pos {
    border-left-color: var(--primary);
}

.payment-method-card.transfer {
    border-left-color: var(--warning);
}

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.payment-method-card.cash .payment-icon {
    background-color: var(--success);
}

.payment-method-card.pos .payment-icon {
    background-color: var(--primary);
}

.payment-method-card.transfer .payment-icon {
    background-color: var(--warning);
}

.payment-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #6c757d;
}

.payment-info p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #343a40;
}

.payment-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

.payment-methods-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 576px) {
.stats-grid {
    grid-template-columns: 1fr;
}
}

.btn {
    padding: 8px 10px;
    font-size: 0.8rem;
}
