/**
 * Sabari Child Care Clinic
 * Custom CSS Styles
 */

:root {
    /* Primary Colors - Light Blue / White / Green */
    --primary: #4FB6E0;
    --primary-dark: #3A9AC2;
    --primary-light: #7FCBEC;
    --secondary: #5CB85C;
    --secondary-dark: #449D44;
    --secondary-light: #80D280;
    --accent: #FF9F43;
    --dark: #343a40;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --text-color: #333333;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 25%;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
}

.top-bar a:hover {
    color: var(--gray-light);
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 20%;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-light);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero-shape {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: var(--secondary-light);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    background-color: var(--white);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--light);
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.about-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
}

.about-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    background-color: var(--white);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Appointment Section */
.appointment-section {
    padding: 5rem 0;
    background-color: var(--light);
}

.appointment-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.appointment-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(79, 182, 224, 0.25);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    background-color: var(--white);
    height: 100%;
}

.testimonial-content {
    position: relative;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: var(--light) transparent;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-author-info h5 {
    margin-bottom: 0.25rem;
}

.testimonial-author-info p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--light);
}

.contact-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer p {
    margin-bottom: 0.75rem;
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--primary);
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        margin-top: 2rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Appointment Form Styles */
.appointment-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.appointment-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.appointment-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--gray-light);
    z-index: 1;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--gray-light);
    color: var(--gray);
    border-radius: 50%;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.appointment-step.active .step-number {
    background-color: var(--primary);
    color: var(--white);
}

.appointment-step.completed .step-number {
    background-color: var(--secondary);
    color: var(--white);
}

.step-title {
    font-size: 0.9rem;
    color: var(--gray);
    transition: var(--transition);
}

.appointment-step.active .step-title,
.appointment-step.completed .step-title {
    color: var(--dark);
    font-weight: 500;
}

.appointment-form-step {
    display: none;
}

.appointment-form-step.active {
    display: block;
}

.appointment-form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(79, 182, 224, 0.25);
}

/* Admin Dashboard Styles */
.dashboard-header {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.dashboard-title {
    margin-bottom: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 1rem;
}

.stat-content h4 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--gray);
    margin-bottom: 0;
}

.dashboard-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dashboard-content h3 {
    margin-bottom: 1.5rem;
}

.dashboard-table {
    width: 100%;
}

.dashboard-table th {
    background-color: var(--light);
}

.dashboard-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-filters .form-group {
    margin-bottom: 0;
}

.appointment-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-confirmed {
    background-color: rgba(79, 182, 224, 0.2);
    color: var(--primary);
}

.status-completed {
    background-color: rgba(92, 184, 92, 0.2);
    color: var(--secondary);
}

.status-cancelled {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.status-no-show {
    background-color: rgba(108, 117, 125, 0.2);
    color: var(--gray);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    line-height: 32px;
    padding: 0;
    text-align: center;
    border-radius: 50%;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
}

.modal-header {
    background-color: var(--primary);
    color: var(--white);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.modal-title {
    color: var(--white);
}

.modal-footer {
    border-top: none;
}

/* Appointment Details */
.appointment-details {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.appointment-details h3 {
    margin-bottom: 1.5rem;
}

.appointment-info {
    margin-bottom: 2rem;
}

.appointment-info-item {
    display: flex;
    margin-bottom: 1rem;
}

.appointment-info-label {
    font-weight: 500;
    width: 150px;
}

.appointment-report {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.appointment-report h4 {
    margin-bottom: 1rem;
}

/* Login Form */
.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.login-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
}

.login-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-height: 80px;
}

/* Utilities */
.text-bold {
    font-weight: 700;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.bg-light-primary {
    background-color: rgba(79, 182, 224, 0.1);
}

.bg-light-secondary {
    background-color: rgba(92, 184, 92, 0.1);
}

.text-small {
    font-size: 0.85rem;
}

.required:after {
    content: '*';
    color: #dc3545;
    margin-left: 0.25rem;
}
