/* Main Styling for Hawwa Postpartum Care */

:root {
    --primary-color: #6a5acd;  /* Slateblue - primary brand color */
    --primary-light: #9a8de3;
    --primary-dark: #483d8b;
    --secondary-color: #ff8c69;  /* Salmon - complementary color */
    --accent-color: #20b2aa;  /* Light Sea Green - accent color */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Import other CSS files */
@import url('services.css');

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
}

footer a {
    color: #fff;
    opacity: 0.8;
}

footer a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.service-card img {
    height: 200px;
    object-fit: cover;
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    border-radius: 10px;
    padding: 20px;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(106, 90, 205, 0.25);
}

/* Profile Sections */
.profile-header {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Dashboard Components */
.dashboard-stat {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Booking Calendar */
.booking-calendar .booked {
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
}

.booking-calendar .available {
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
}

/* AI Buddy Chat Interface */
.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 75%;
}

.user-message {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
}

.bot-message {
    background-color: #e9ecef;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .chat-message {
        max-width: 85%;
    }
}

/* RTL Support for Arabic */
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .dropdown-menu {
    text-align: right;
}

html[lang="ar"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[lang="ar"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[lang="ar"] .text-md-end {
    text-align: left !important;
}

html[lang="ar"] .text-md-start {
    text-align: right !important;
}