/* Badge base */
.survey-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    color: #333 ;
}

.survey-badge i {
margin: 2px;
}


/* Colors */
.badge-secondary {
    background-color: #7E7E7E33;
    color: #333;
}

.badge-success {
    background-color: #6CF88F57;
    color: #333;
}

.badge-danger {
    background-color:#D516160F ;
    color: #333;
}

.badge-info {
    background-color: #3F99BD33;
    color: #333;
}

.badge-question {
    background-color: #FFE4714A;
    color: #333;
}

.required-badge{
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.04);
    background-color: #f8f9fa;
    color: #BF5B4D;
    border-bottom: 2px solid #e3e3e3;
}


.badge-light {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    background-color: #f8f9fa;
    color: #333;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.03);
}

.badge-question img {
    margin: 0 5px;

}

.badge-light img{
    margin: 0 5px;
    width: 15px;
    height: 15px;
}

.badge-light i{
    margin: 0 5px;
    width: 15px;
    height: 15px;
    }

/* Spacing */
.ml-1 {
    margin-left: 4px;
}

.mb-3 {
    margin-bottom: 16px;
}

/* Icons inside badge */
.badge i {
    margin-right: 4px;
    font-size: 12px;
}

.survey-card-body {
    height: 320px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 30px;
    color: #333;
    border-bottom: 12px solid #CDFCD9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}



.back-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.back-icon {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


/* Survey Card Body (Show Page) */
.survey-card-body-show {
    padding: 40px 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    background-color: white;
    border-radius: 30px;
    color: #333;
    border-bottom: 12px solid #CDFCD9;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .survey-card-body-show {
        flex-direction: column;
        padding: 25px 20px;
        align-items: center;
        gap: 20px;
    }
}

/* Internal row for info */
.survey-card-body-show .row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.survey-card-body-show  p {
font-size: 16px;
}

.font-weight-bold{
    font-weight: bold;
}

/* Buttons */
.survey-btn {
    padding: 12px 50px;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}




.survey-btn img {
    width: 18px;
    height: 18px;
}

.survey-btn-secondary {
    background-color: #D8D8D891;
    color: #056B5F;
    border-bottom: 5px solid #056B5F6E;
}

.survey-btn-success {
    background-color: #FFFFFF91;
    color: #056B5F;
    border-bottom: 5px solid #056B5F6E;
}

.survey-btn-primary {
    background-color: #056B5F;
    color: white;
    border-bottom: 5px solid #16b7a4b1;
}

.survey-btn-primary:hover {
    color: white;
}
.survey-btn-success:hover {
    color: #056B5F;
}
.survey-btn-secondary:hover {
    color: #056B5F;
}

.survey-form{
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    padding: 40px 40px;
    gap: 25px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Label */
.survey-progress-label {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

/* Progress Container */
.survey-progress {
    height: 25px !important;
    border-radius: 50px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden; 
    background-color: #e9ecef;
}

/* Progress Bar */
.survey-progress-bar {
    background-color: #C2AC50 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.survey-form h2
{  
    font-size: 20px;
    font-weight: bold;
    color: #333;
    padding-bottom: 10px;        
    border-bottom: 1px solid #a6a5a53a;

}

.card-body{
    padding-bottom: 20px !important;        
    border-bottom: 1px solid #a6a5a53a;
}

.form-check{
    background-color: #F7F7F7;
    border-radius: 10px;
    padding: 10px 20px;
    color: #414141;
    gap: 20px;
    margin: 25px 0;

}

.icon-black {
    filter: brightness(0) saturate(100%);
}


.custom-radio input[type="radio"] {
    margin: 0 5px;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid #056B5F;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: 0.2s ease-in-out;
}

.custom-radio input[type="radio"]:checked {
    border-color: #056B5F;
    background-color: white;
}

.custom-radio input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 2px;
    width: 10px;
    height: 10px;
    background-color: #056B5F;
    border-radius: 50%;
}

.custom-radio input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



/* الكرت */
.survey-stat-card {
    background:#f1f1f128;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-top-width: 6px;
    width: 225px;
    border-top-style: solid;
    font-weight: bold;

    box-shadow:
    inset 10px 0 15px -6px rgb(255, 255, 255),
    inset -10px 0 8px -6px rgba(212, 211, 211, 0.267);

}




.survey-stat-card p {
  font-size: 30px;
    font-weight: bold;
}
/* ألوان البوردر */
.border-top-primary   { border-top-color: #277ECB1A; }
.border-top-success   { border-top-color: #10A6941A; }
.border-top-info      { border-top-color: #FF725E1F; }
.border-top-warning   { border-top-color: #CB8A271A; }

/* ألوان الآيقونات */
.survey-stat-card i,
.survey-stat-card img {
    width: 50px;
    height: 50px;
    margin-right: 6px;
    vertical-align: middle;
}

.survey-stat-card.border-top-primary h4 { color: #277ECB; }
.survey-stat-card.border-top-success h4 { color: #10A694; }
.survey-stat-card.border-top-info h4    { color: #FF725E; }
.survey-stat-card.border-top-warning h4 { color: #CB8A27; }

/* آيقونات ملونة حسب الكرت */
.border-top-primary i    { color: #277ECB; }
.border-top-success i { color: #10A694; }
.border-top-info i    { color: #FF725E; }
.border-top-warning i  { color: #CB8A27; }

/* تعديل اللون على الصور SVG */
.border-top-primary p img { filter: brightness(0) saturate(100%) invert(37%) sepia(74%) saturate(1331%) hue-rotate(182deg) brightness(92%) contrast(96%); }
.border-top-success p img { filter: brightness(0) saturate(100%) invert(50%) sepia(32%) saturate(1100%) hue-rotate(110deg) brightness(95%) contrast(92%); }
.border-top-info p img    { filter: brightness(0) saturate(100%) invert(59%) sepia(80%) saturate(968%) hue-rotate(338deg) brightness(100%) contrast(96%); }
.border-top-warning p img { filter: brightness(0) saturate(100%) invert(44%) sepia(70%) saturate(781%) hue-rotate(11deg) brightness(95%) contrast(95%); }

/* النص */
.survey-stat-card h4 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.survey-stat-card p {
    margin: 5px 0 0;
    color: #6c757d;
    font-size: 14px;
}

.progress-card-body {
    height: 300px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 30px;
    color: #333;
    border-bottom: 12px solid #CDFCD9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.progress-card-body .cards-row{
    display: flex;
    gap: 20px;
}


.table-custom {
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* مهم حتى تظهر الزوايا */
    border: none;
    padding: 30px;
}

.table-custom table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5 !important;
}

.table-custom td {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.table-custom tr:last-child td {
    border-bottom: none !important;
}

.table-custom .table {
    border: none !important;
}



/* ============================
   DARK MODE – GENERAL
============================ */
.dark-mode {
    color: #e5e5e5;
}

/* ============================
   Badges
============================ */
.dark-mode .survey-badge {
    color: #eee;
}

.dark-mode .badge-secondary {
    background-color: #5a5a5a88;
    color: #eee;
}

.dark-mode .badge-success {
    background-color: #3ebf6a66;
    color: #eee;
}

.dark-mode .badge-danger {
    background-color: #b3242433;
    color: #eee;
}

.dark-mode .badge-info {
    background-color: #1d6d8a66;
    color: #eee;
}

.dark-mode .badge-question {
    background-color: #8d742633;
    color: #eee;
}

.dark-mode .badge-light {
    background-color: #2b2b2b;
    color: #f1f1f1;
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.3);
}

.dark-mode .required-badge {
    background-color: #2b2b2b;
    color: #ff9585;
    border-bottom: 2px solid #3a3a3a;
}

/* ============================
   Survey Card
============================ */
.dark-mode .survey-card-body,
.dark-mode .survey-card-body-show,
.dark-mode .survey-form {
    background-color: #101817;
    box-shadow: 1px 1px 1px rgba(128, 128, 128, 0.3);   
     color: #f0f0f0;
    border-bottom-color: #3a8f78;
}

/* ============================
   Progress Bar
============================ */
.dark-mode .survey-progress {
    background-color: #333 !important;
}

.dark-mode .survey-progress-bar {
    background-color: #bda150 !important;
}

/* ============================
   Back Link Icon
============================ */
.dark-mode .back-icon {
    background-color: #2b2b2b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.dark-mode .back-link {
    color: #ddd;
}

/* ============================
   Form Styling
============================ */
.dark-mode .form-check {
    background-color: #2d2d2d;
    color: #ddd;
}

/* ============================
   Radio Buttons
============================ */
.dark-mode .custom-radio input[type="radio"] {
    border-color: #4ac7b1;
}

.dark-mode .custom-radio input[type="radio"]:checked::before {
    background-color: #4ac7b1;
}

.dark-mode .custom-radio input[type="radio"]:checked {
    border-color: #4ac7b1;
}

.dark-mode .custom-radio input[type="radio"]:disabled {
    opacity: 0.3;
}

/* ============================
   Icons / Images
============================ */
.dark-mode .icon-black {
    filter: brightness(0) invert(1);
}

/* Labels and Titles */
.dark-mode .survey-form h2 {
    border-bottom-color: #444;
    color: #eee;
}

.dark-mode .card-body {
    border-bottom-color: #444;
}


.dark-mode .survey-btn-secondary {
    background-color: rgb(255, 255, 255);
    color: #056B5F;
}

.dark-mode .survey-btn-success {
    background-color: #ffffff;
    color: #056B5F;
}

.dark-mode .survey-btn-primary {
    background-color: #056B5F;
    color: white;
}


.dark-mode .table-custom {
    background: #1f1f1f;
    border: none;
}

.dark-mode .table-custom th {
    background: #2a2a2a;
    color: #e1e1e1;
    border-bottom: 1px solid #3a3a3a !important;
}

.dark-mode .table-custom td {
    color: #cfcfcf;
    border-bottom: 1px solid #333 !important;
}

.dark-mode .table-custom tr:last-child td {
    border-bottom: none !important;
}


/* الكرت */
.dark-mode .progress-card-body {

    background-color: #101817;
    box-shadow: 1px 1px 1px rgba(128, 128, 128, 0.3);   
     color: #f0f0f0;
    border-bottom-color: #3a8f78;

}

/* الكرت */
.dark-mode .survey-stat-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-top-width: 6px;
    width: 225px;
    border-top-style: solid;
    font-weight: bold;

    background-color: #101817;
    box-shadow: 1px 1px 1px rgba(128, 128, 128, 0.3);   
     color: #f0f0f0;
    border-bottom-color: #3a8f78;

}