﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}




/*select pain*/
body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding-top: 20px;
}

.header-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex; /* Added for the header-section if it's used elsewhere for alignment */
    align-items: center; /* Added */
    gap: 10px; /* Added */
}

.main-content-area {
    display: flex;
    flex-direction: column-reverse; /* هيخلي الـ right-panel فوق والـ left-panel تحت */
    gap: 0px;
    align-items: center; /* توسيط الـ panels أفقياً داخل الكونتينر */
    /* justify-content: center; لو عايز توسيطهم رأسياً كمان داخل الكونتينر */
}

.left-panel {
    width: 100%; /* خليها تاخد عرض كامل */
    max-width: 1000px; /* عرض أقصى عشان متكونش عريضة جداً */
    background-color: #ffffff;
    padding: 10px 20px 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* لدفع العناصر السفلية للأسفل */
    align-items: center;
    margin-bottom: 20px;
}

.right-panel {
    width: 100%; /* خليها تاخد عرض كامل */
    max-width: 1000px; /* عرض أقصى عشان متكونش عريضة جداً */
    min-height: 550px; /* زود الارتفاع الأدنى للـ panel عشان الصورة تكبر */
    background-color: #f1f3fb;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center; /* توسيط الصورة أفقياً */
    align-items: center; /* توسيط الصورة رأسياً */
    position: relative;
}

.pain-category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.pain-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

    .pain-category-item:hover {
        background-color: #e9ecef;
    }

.pain-icon-circle {
    width: auto;
    height: 60px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    border: 1px solid #dee2e6;
}

    .pain-icon-circle img {
        max-width: 80%;
        max-height: 80%;
    }

.main-body-svg-img {
    max-width: 500px;
    height: auto; /* **** عدل دي لـ 100% عشان تملأ الـ right-panel **** */
    object-fit: contain; /* **** مهم جداً عشان الصورة متتكسلش وتحافظ على أبعادها **** */
    display: block;
}

/*pain details*/
.orange-sparkle-overlay {
    position: absolute;
    width: 25px;
    height: 25px;
    background-image: url('../Images/Effects/orange_sparkle_circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite alternate;
    display: block;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.pain-details-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
}

.pain-page-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.pain-page-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

.pain-page-divider {
    border: 0;
    height: 1px;
    background: #ccc;
    margin-bottom: 20px;
}
.back-button {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    margin-right: auto;
    margin-bottom: 20px;
    align-self: flex-start;
}
    .back-button:hover {
        text-decoration: underline;
    }
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .main-content-area {
        flex-direction: column-reverse; /* For small screens, keep them stacked vertically */
    }

    .left-panel, .right-panel {
        max-width: 100%; /* On small screens, take full width */
    }

    .right-panel {
        min-height: 300px; /* Adjust height for smaller screens */
    }

    .main-body-svg-img {
        max-width: 500px;
        height: auto;
        object-fit: contain;
    }
}
.align-start-only {
    align-self: flex-start;
    text-align: start;
    width: 100%;
}
/*new*/
