/* 
 * Dr. Fozi Dental Clinic - Main Stylesheet
 * Created: 2025-03-16
 */

:root {
    --primary-color: #1e88e5;
    --secondary-color: #64b5f6;
    --accent-color: #ff9800;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* Header and Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-color);
}

.admin-link {
    margin-left: 15px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)), url('../images/dental-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    padding: 100px 0;
    margin-bottom: 40px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Appointment Form */
.appointment-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.appointment-form:hover {
    transform: translateY(-5px);
}

.appointment-form h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 15px;
}

/* Feature Cards */
.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--accent-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

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

/* Testimonials */
.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-card:before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(0, 0, 0, 0.1);
}

.rtl .testimonial-card:before {
    content: '\201D';
    left: auto;
    right: 10px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Section Styling */
section {
    padding: 30px 0;
}

section h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* Branch Cards */
.branch-card {
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.rtl .branch-card {
    border-left: none;
    border-right: 3px solid var(--accent-color);
    padding-left: 0;
    padding-right: 15px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer h4 {
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.rtl footer h4:after {
    right: 0;
    left: auto;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.rtl footer a:hover {
    padding-right: 5px;
    padding-left: 0;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .admin-link {
        margin-top: 10px;
        margin-left: 0;
    }
}
