﻿:root {
    --primary-color: #e8a9c4;
    --secondary-color: #f7e9f1;
    --heading-color: #8c4263;
    --text-color: #555;
}

/* Body */
body {
    background-color: var(--secondary-color);
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* منع التمرير الأفقي كحل احتياطي */
}

/* Header */
.clinic-logo {
    width: 80px;
    height: 80px;
    border: 2px solid #9c27b0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.doctor-name {
    font-weight: bold;
    color: var(--heading-color);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.speciality {
    color: #444;
    white-space: normal; /* السماح بكسر النص */
    font-size: clamp(0.85rem, 2.4vw, 1.1rem);
}

.contact-info i {
    margin-left: 6px;
}

/* Cards */
.card {
    border-radius: 1rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.card-title {
    color: var(--heading-color);
    font-weight: 700;
}

/* Buttons */
.btn-custom {
    background-color: var(--primary-color);
    border: none;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

    .btn-custom:hover {
        background-color: #d18fae;
    }

/* Forms */
.form-control, .form-select {
    border-radius: 0.75rem;
    border-color: #ccc;
}

/* Alerts */
.alert-custom {
    border-radius: 0.75rem;
    border: none;
}

/* List Group */
.list-group-item {
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Badges */
.badge-success-custom {
    background-color: #a9e8c4 !important;
    color: #3b7e51;
}

.badge-danger-custom {
    background-color: #f0c3d4 !important;
    color: #b33951;
}

/* Ensure long text wraps properly */
.list-group-item .fw-bold,
.list-group-item small {
    word-break: break-word;
    line-height: 1.4;
}

/* Responsive for small screens */
@media (max-width: 576px) {
    .clinic-logo {
        width: 60px;
        height: 60px;
    }

    .doctor-name {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }

    .speciality {
        font-size: clamp(0.75rem, 4vw, 1rem);
    }

    .contact-info {
        margin-top: 1rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    .btn-custom {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem;
    }

    /* Make sure columns take full width */
    .col-lg-6,
    .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
