/**
 * assets/css/style.css
 * Main stylesheet for Dental Centre Landing Page
 */

:root {
    --primary: #0067b8;
    --primary-dark: #005b9e;
    --secondary: #00bc87;
    --light: #f5f5f5;
    --dark: #2f2f2f;
    --white: #fff;
    --gray: #6e6e6e;
    --light-blue: #e6f0fa;
    --accent: #ff6b6b;
}
html {
    scroll-behavior: smooth;
}
* { 
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
} 
/* Top Bar */
.top-bar {
    background-color: var(--light-blue);
    padding: 10px 0;
    font-size: 14px; z-index: 99;
    /*transition: all 0.3s ease;*/
}

.top-bar a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--primary);
}

.top-bar-right .lang-switch {
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 50px;
    border-radius: 8px;
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 20px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 40px);
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}
/* Smooth transitions */
.navbar, .top-bar {
    transition: all 0.3s ease;
}
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide:first-child {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 103, 184, 0.7), rgba(0, 103, 184, 0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.clinic-badge {
    background-color: var(--secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto 0;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    background-color: var(--light-blue);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--secondary);
}

.service-icon img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--dark);
    line-height: 1.6;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* Reduced shadow for smaller card */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Specific transitions for performance */
    width: 100%; /* Ensure card fits container */
    max-width: 250px; /* Smaller card width */
}

.team-card:hover {
    transform: translateY(-5px); /* Reduced hover lift for smaller card */
    box-shadow: 0 6px 20px rgba(0,103,184,0.2); /* Adjusted shadow */
}

.team-img {
    width: 100%;
    height: 150px; /* Reduced height for smaller card */
    overflow: hidden;
    background-color: var(--light-blue); /* Fallback for missing images */
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image always covers container */
    display: block; /* Prevents layout issues */
    transition: transform 0.3s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.1); /* Retained hover zoom effect */
}

.team-info {
    padding: 15px; /* Reduced padding for compact card */
}

.team-info h3 {
    color: var(--primary);
    font-size: 1rem; /* Smaller font size */
    font-weight: 600;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--gray);
    font-size: 0.85rem; /* Smaller font size */
    margin-bottom: 10px; /* Reduced margin */
}
.team-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.team-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.team-btn:hover {
    transform: scale(1.05);
}

.profile-btn {
    background: var(--primary);
    color: var(--white);
}

.profile-btn:hover {
    background: #00ba47;
}

.appointment-btn {
    background: var(--primary);
    color: var(--white);
}

.appointment-btn:hover {
    background: #00ba47;
}
/* Clinic Cards */
.clinic-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.clinic-map {
    width: 100%;
    height: 300px;
}

.clinic-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars i {
    font-size: 1.1rem;
}

/* Contact Section */
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 103, 184, 0.25);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,103,184,0.3);
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .back-to-top {
        bottom: 90px;
        width: 40px;
        height: 40px;
    }
}

/**
 * assets/css/rtl.css
 * RTL (Right-to-Left) styles for Arabic
 */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .team-info {
    text-align: right; /* Align text for RTL */
}
[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

[dir="rtl"] .social-links a {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .navbar-nav .nav-link::after {
    left: auto;
    right: 20px;
}

[dir="rtl"] .section-title h2::after {
    margin: 15px auto 0;
}

/**
 * assets/css/admin.css
 * Admin panel styles
 */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: var(--primary);
    background-color: rgba(0,103,184,0.1);
}

.sidebar .nav-link.active {
    color: var(--primary);
    background-color: rgba(0,103,184,0.15);
    border-left: 3px solid var(--primary);
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.admin-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-stats-card {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.admin-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.badge-status-active {
    background-color: #28a745;
}

.badge-status-inactive {
    background-color: #6c757d;
}

.badge-status-pending {
    background-color: #ffc107;
}

/* Admin Form Styles */
.admin-form-tabs {
    border-bottom: 2px solid #dee2e6;
}

.admin-form-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
}

.admin-form-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: transparent;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .floating-whatsapp,
    .back-to-top {
        display: none !important;
    }
    
    .main {
        margin-left: 0 !important;
    }
}
