/* KFUPM IRSHAD Styles */

:root {
    --beige: #ECE0C6;
    --beige2: #ede5cb;
    --turquoise: #32686b;
    --turquoise2: #20444a;
    --turquoise3: #23464c;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
}

/* KFUPM Color Palette */
.bg-beige { background: var(--beige) !important; }
.text-beige { color: var(--beige) !important; }
.bg-beige2 { background: var(--beige2) !important; }
.text-beige2 { color: var(--beige2) !important; }
.bg-turquoise { background: var(--turquoise) !important; }
.text-turquoise { color: var(--turquoise) !important; }
.bg-turquoise2 { background: var(--turquoise2) !important; }
.text-turquoise2 { color: var(--turquoise2) !important; }
.bg-turquoise3 { background: var(--turquoise3) !important; }
.text-turquoise3 { color: var(--turquoise3) !important; }
.text-teal { color: teal }
.text-green2 {color: #117A7A;}
.text-coral { color: coral }
.text-chocolate { color: chocolate }
.text-purple { color: #C539B4; }

/* fonts */
.bs-kfupm-font {font-family: "KFUPM Display", sans-serif;}
.bs-sans-font-ar {font-family: "IBM Plex Sans Arabic", sans-serif;}
.bs-markazi-font {font-family: "Markazi Text", sans-serif;}

/* label */
.bs-label {
  color: #2C5E65;
  font-weight: bold;
  /*text-decoration: underline;*/
  /*cursor: pointer;*/
  /*user-select: none;*/
}

/* buttons */
.btn-xs {
  padding: 0.15rem 0.5rem; /* Adjust padding as needed */
  /*padding: 0.063rem; !* Adjust padding as needed *!*/
  font-size: 0.75rem;     /* Adjust font size as needed */
  border-radius: 0.2rem;   /* Adjust border radius as needed */
}
.custom-btn-cancel { background: #6c757d; color: #fff; font-weight: bold; border-radius: .3rem; border: none; width: 30%; height: 40px;}
.custom-btn-cancel:hover, .custom-btn-cancel:focus { background: #788088; color: #fff; }
.custom-btn-submit { background: #2C5E65; color: #fff; font-weight: bold; border-radius: .3rem; border: none; width: 30%; height: 40px;}
.custom-btn-submit:hover, .custom-btn-submit:focus { background: #215055; color: #fff; }
.custom-upload-label { font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.custom-upload-status { color: #6c757d; margin-bottom: .5rem; }

.section-container { background: white; border-radius: 32px; padding: 20px; margin-top: 16px;}
.comment-bg-1 {padding: 8px; margin: 2px 0px 0px 0px; border-radius: 16px; background: #e7f1f1;}
/*.comment-bg-2 {padding: 8px; margin: 2px 0px 0px 0px; border-radius: 16px; background: lightpink;}*/
.comment-bg-2 {padding: 8px; margin: 2px 0px 0px 0px; border-radius: 16px;
    background: linear-gradient(to bottom, lightpink, #ffffff);}
.comment-bg-3 {padding: 8px; margin: 2px 0px 0px 0px; border-radius: 16px; background: #e2e8f0;}
.comment-bg-4 {padding: 8px; margin: 2px 0px 0px 0px; border-radius: 16px;
    background: linear-gradient(to bottom, #f3f7f8, #ffffff);}

/* check box */
.bs-checkbox {
  accent-color: #ECE0C6;
  border: 2px solid #2C5E65;
  width: 1.25rem;
  height: 1.25rem;
}

.case-box-heading {color: #117A7A;}
.case-attachment {text-decoration: none;}

 /* Style the button when the htmx-request class is present on itself */
.htmx-request.htmx_submit-button {
    cursor: not-allowed;
    opacity: 0.5; /* Makes it look greyed out */
}

/* a box wrapper with linear gradient */
.box-wrapper {
    background: linear-gradient(rgba(220, 220, 220, 0.125) 0%, rgba(245, 245, 245, 0.5625) 50%, rgba(220, 220, 220, 0.125) 100%);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin: 14px 0px;
}

/* referral Card  with linear gradient */
.referral-card {
    display: flex;
    background: linear-gradient(to right, #f3f7f8, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

/* Search input */
.bs-search-input {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: .7rem;
  padding: 0.5rem;
  flex: 1 1 0%;
  max-width: 300px;
}

/* Search button */
.bs-search-btn {
  background: #2C5E65;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: .7rem;
  border: none;
  transition: all ease 0.18s;
}
.bs-search-btn:hover, .bs-search-btn:focus {
  background-color: #24505294;
  color: #245052;
}
/* reset button */
.bs-reset-btn {
  background: #ca8a04;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: .7rem;
  border: none;
  transition: background 0.18s;
}
.bs-reset-btn:hover, .bs-reset-btn:focus {
  background-color: #e4dac6;
  color: #ca8a04;
}

.history-counter {
    font-size: 0.65rem;
    color: silver;
}

/************** above are for irshad v2 Dec 1, 2025 *************/




.htmx-indicator {opacity: 0; transition: opacity 200ms ease-in;}

.protected_comment {color: coral; font-size: 0.95rem;}
.private_comment {color: crimson; font-size: 0.95rem;}
.public_comment {color: forestgreen; font-size: 0.95rem;}
.tag_attach_comment {color: #49bad8; font-size: 0.95rem;}
.appointment_comment {color: teal; font-size: 0.95rem;}
.transferred_to_consultant_comment {color: #AF0171; font-size: 0.95rem;}
.transferred_case_comment {color: #C539B4; font-size: 0.95rem;}

.comment-flag {
    font-family: Open Sans, 'KacstOffice';  font-size: 14px;
    color: white;
    background-image: linear-gradient(#4E90A4, #49bad8);
    /*background-color: dodgerblue; */
    box-shadow: 3px 2px 4px #888888;
    padding: 5px;
    text-align: center;
    border-radius: 7px;
    margin-left: 3px; margin-right: 3px; margin-bottom: 5px;
    max-width: 350px;
}
#div_student_comment_list {position:absolute; z-index: 2; padding: 10px;}
#div_appointment_notification_list {position:absolute; z-index: 3; padding: 10px;}
.overlay_green {background-color: green; opacity: 0.4;}
.overlay_crimson {background-color: crimson; opacity: 0.4;}
.overlay_orange {background-color: orange; opacity: 0.8;}
.overlay_white {background-color: whitesmoke; opacity: 0.9; border: 1px solid green;}

.female_icon {color: deeppink;}
.male_icon {color: blue;}
.card-title {color: green;}
/* check box styles as django do not render them properly */
INPUT[type=checkbox]:focus
{
    outline: 1px solid rgba(0, 0, 0, 0.2);
}

INPUT[type=checkbox]
{
    background-color: #DDD;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 17px;
    height: 17px;
    cursor: pointer;
    position: relative;
    top: 5px;
}

INPUT[type=checkbox]:checked
{
    background-color: #0E5E6F;
    background: #0E5E6F url("data:image/gif;base64,R0lGODlhCwAKAIABAP////3cnSH5BAEKAAEALAAAAAALAAoAAAIUjH+AC73WHIsw0UCjglraO20PNhYAOw==") 3px 3px no-repeat;
}

/* radio button styles as django do not render them properly */
INPUT[type=radio]:focus
{
    outline: 1px solid rgba(0, 0, 0, 0.2);
}

INPUT[type=radio]
{
    /*background-color: #DDD;*/
    background: #f4f4f4;
    border-radius: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 15px;
    height: 15px;
    cursor: pointer;
    position: relative;
    top: 5px;
    text-align: center;
    margin-right: 3px;
    transition: all 250ms ease;
}

INPUT[type=radio]:checked
{
    /*background-color: #00b05a;*/
    /*border: 4px solid #0E5E6F;*/

    background-color: #3197EE;
    /*background-color: #0E5E6F;;*/
    box-shadow: inset 0 0 0 4px #f4f4f4;
}

INPUT[type=radio]:focus + .radio-label:before
{
    outline: none;
    border-color: #3197EE;
}

/* End radio button styles as django do not render them properly */

/* irshad new button style based on bootstrap main .btn theme */
.btn--brown {background-color: #AC7D88; color: white;}
.btn--magenta {background-color: #AF0171; color: white;}
.btn--purple {background-color: #C539B4; color: white;}
.btn--teal {background-color: #0E5E6F; color: white;}
.btn--crimson {background-color: #B73E3E; color: white;}
.btn--orange {background-color: #F57328; color: white;}
.btn--green {background-color: #1C6758; color: white;}
.btn--green-mat {background-color: #417D7A; color: white;}

.btn-outline--brown {background-color: transparent; color: #AC7D88; border-color: #AC7D88;}
.btn-outline--brown:hover {background-color: #AC7D88; color: #fff; border-color: #AC7D88;}

.btn-outline--brown-mat {background-color: transparent; color: #87805E; border-color: #87805E;}
.btn-outline--brown-mat:hover {background-color: #87805E; color: #fff; border-color: #87805E;}

.btn-outline--magenta {background-color: transparent; color: #AF0171; border-color: #AF0171;}
.btn-outline--magenta:hover {background-color: #AF0171; color: #fff; border-color: #AF0171;}

.btn-outline--purple {background-color: transparent; color: #C539B4; border-color: #C539B4;}
.btn-outline--purple:hover {background-color: #C539B4; color: #fff; border-color: #C539B4;}

.btn-outline--teal {background-color: transparent; color: #0E5E6F; border-color: #0E5E6F;}
.btn-outline--teal:hover {background-color: #0E5E6F; color: #fff; border-color: #0E5E6F;}

.btn-outline--crimson {background-color: transparent; color: #B73E3E; border-color: #B73E3E;}
.btn-outline--crimson:hover {background-color: #B73E3E; color: #fff; border-color: #B73E3E;}

.btn-outline--orange {background-color: transparent; color: #F57328; border-color: #F57328;}
.btn-outline--orange:hover {background-color: #F57328; color: #fff; border-color: #F57328;}

.btn-outline--orange-gradient {background-color: transparent; color: #F57328; border-color: #F57328;}
.btn-outline--orange-gradient:hover {background-image: linear-gradient(#F57328, chocolate); color: #fff; border-color: chocolate;}

.btn-outline--green {background-color: transparent; color: #1C6758; border-color: #1C6758;}
.btn-outline--green:hover {background-color: #1C6758; color: #fff; border-color: #1C6758;}

.btn-outline--green-mat {background-color: transparent; color: #417D7A; border-color: #417D7A;}
.btn-outline--green-mat:hover {background-color: #417D7A; color: #fff; border-color: #417D7A;}

.btn-outline--green-mat-gradient {background-color: transparent; color: #1C6758; border-color: #1C6758;}
.btn-outline--green-mat-gradient:hover {background-image: linear-gradient(#1C6758, #3F9272); color: #fff; border-color: #1C6758;}

.btn-outline--grey-mat {background-color: transparent; color: #AEBDCA; border-color: #AEBDCA;}
.btn-outline--grey-mat:hover {background-color: #AEBDCA; color: #fff; border-color: #AEBDCA;}

.btn-outline--navy {background-color: transparent; color: #325288; border-color: #325288;}
.btn-outline--navy:hover {background-color: #325288; color: #fff; border-color: #325288;}

.btn-outline--navy-gradient {background-color: transparent; color: #325288; border-color: #325288;}
.btn-outline--navy-gradient:hover {background-image: linear-gradient(#325288, #1DC9F9); color: #fff; border-color: #325288;}

.btn-outline--info {background-color: transparent; color: #49bad8; border-color: #49bad8;}
.btn-outline--info:hover {background-color: #49bad8; color: #fff; border-color: #49bad8;}

.btn-outline--info-gradient {background-color: transparent; color: #49bad8; border-color: #49bad8;}
.btn-outline--info-gradient:hover {background-image: linear-gradient(#47af9b, #3F9272); color: #fff; border-color: #49bad8;}

.btn-outline--info-gradient2 {background-color: transparent; color: #0294B9; border-color: #1DC9F9;}
.btn-outline--info-gradient2:hover {background-image: linear-gradient(#0294B9, #1DC9F9); color: #fff; border-color: #0294B9;}

/* End bootstrap new button style based on primary theme */

/* Irshad new badges based on bootstrap base .badge*/
.badge--brown {background-color: #AC7D88; color: white;}
.badge--magenta {background-color: #AF0171; color: white;}
.badge--purple {background-color: #C539B4; color: white;}
.badge--teal {background-color: #0E5E6F; color: white;}
.badge--crimson {background-color: #B73E3E; color: white;}
.badge--orange {background-color: #F57328; color: white;}
.badge--orange2 {background-color: #ff836f; color: white;}
.badge--pink {background-color: #fecdc2; color: #AF0171;}
.badge--pink-light {background-color: #ffded5; color: #AF0171;}
.badge--green {background-color: #1C6758; color: white;}
.badge--green-mat {background-color: #417D7A; color: white;}
.badge--navy {background-color: #325288; color: white;}
.badge--silver {background-color: silver; color: white;}
.badge--grey-light {background-color: #EEEEEE; color: black;}
.badge--grey {background-color: #AEBDCA; color: black;}
.badge--info {background-color: #49bad8; color: white;}

.badge--small {
  font-size: 1.2rem;
  padding: 0.1rem 0.65rem 0.2rem;
}

.badge--smaller {
  font-size: 0.8rem;
  padding: 0.05rem 0.4rem 0.15rem;
}
/* End Irshad new badges*/

#navtop_green {
    display: flex; align-items: center;
    background-color: #0C7E40; min-height: 50px; max-height: 50px; color: white;
}
#navtop_yellow {
    display: flex; align-items: center;
    background-color: #D1B755; min-height: 100px;
}
#navtop_yellow_sm {
    display: none;
}
#ses_logo {max-width: 470px;}

#irshad_logo {max-width: 300px;}

#div_ajax_spinner {color: #0C7E40}

#welcome_centered {display: flex; flex-direction: column; max-width: 700px; margin: auto; margin-top: 7%;}

/*#dash_nav {display: none;}*/
#dash_nav_sm {
    display: flex;justify-content: center; align-items: center;
    background-color: #0C7E40; border-bottom: 3px solid #D1B755;
}

#main_content{min-height: 600px; margin-bottom: 10px; width: 100%;}

.page-heading-black{
    font-family: Open Sans, 'Hacen Tunisia Lt';
    font-size: 40px; font-weight: bold;
    color: black;
    line-height: 76px;
}.page-heading-green{
    font-family: Open Sans, 'Hacen Tunisia Lt';
    font-size: 40px; font-weight: bold;
    color: #0C7E40;
    line-height: 76px;
}
.navtop_links {text-decoration: none; color: white;}
.navtop_links:hover {text-decoration: none; color: coral;}
.navtop_links_ar {font-family: 'Hacen Tunisia Lt', Open Sans;  font-size: 15px;}

.irshad_nav_link {
    font-family: Open Sans, 'Hacen Tunisia Lt';  font-size: 16px; color: white;
}
.irshad_nav_link:hover {
    color: coral;
}
.btn-add-user {border-bottom: 3px solid green;}

.ar_13 {font-family: Open Sans, 'Hacen Tunisia Lt';  font-size: 13px;}
.ar_14 {font-family: Open Sans, 'Hacen Tunisia Lt';  font-size: 14px;}
.ar_15 {font-family: Open Sans, 'Hacen Tunisia Lt';  font-size: 15px;}
.ar_16 {font-family: Open Sans, 'Hacen Tunisia Lt';  font-size: 16px;}
.ar_18 {font-family: Open Sans, 'Hacen Tunisia Lt';  font-size: 18px;}
.ar_20 {font-family: Open Sans, 'Hacen Tunisia Lt';  font-size: 20px;}

.comment_12 {font-family: Open Sans, 'KacstOffice';  font-size: 12px;}
.comment_14 {font-family: Open Sans, 'KacstOffice';  font-size: 14px;}
.comment_15 {font-family: Open Sans, 'KacstOffice';  font-size: 15px;}
.comment_16 {font-family: Open Sans, 'KacstOffice';  font-size: 16px;}
.comment_16b {font-family: Open Sans, 'KacstOffice';  font-size: 16px; font-weight: bold;}
/*.comment_18 {font-family: Open Sans, 'KacstOffice';  font-size: 18px;}*/
/*.comment_18 {font-family: "IBM Plex Sans Arabic", sans-serif, 'KacstOffice';  font-size: 18px;}*/
/*.comment_18 {font-family: sans-serif, 'KacstOffice';  font-size: 18px;}*/
.comment_18 {font-family: sans-serif, 'KacstOffice';  font-size: 18px;}
.comment_18b {font-family: Open Sans, 'KacstOffice';  font-size: 18px; font-weight: bold;}
.comment_20 {font-family: Open Sans, 'KacstOffice';  font-size: 20px;}
.comment_22 {font-family: Open Sans, 'KacstOffice';  font-size: 22px;}

.small_red_8 {font-size: .8em; color: crimson}

.badge.large {font-size: 0.9em;}
.badge.large2 {font-size: 1em;}

.jq_error{ color: crimson}
.help-text {color: crimson; font-size: 13px;}

.blink_me {
  animation: blinker 1s linear infinite;
}

.case-tag-default {
    border-radius: 999px;
    padding: 6px 12px;
    outline: 2px solid rgba(255, 255, 255, 0.726);
    background: linear-gradient(to bottom,#048578 0%,#02D3D7 100%);
    box-shadow:
    0 4px 12px #04857848,
    inset 0 2px 3px rgba(255, 255, 255, 0.6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: small;
    font-family: Arial, sans-serif;
    max-width: 210px;
    /*font-family: Open Sans, 'KacstOffice';  font-size: 15px;*/
    /*color: white;*/
    /*background-image: linear-gradient(#47af9b, #3F9272);*/
    /*box-shadow: 3px 2px 4px #888888;*/
    /*padding: 5px;*/
    /*text-align: center;*/
    /*border-radius: 7px;*/
    /*margin-left: 3px; margin-right: 3px;*/
    /*line-height: 35px;*/
}

.case-tag-default::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    right: 8px;
    height: 70%;
    border-radius: 999px;
    border: 1px solid #01aba02d;
    background: linear-gradient(to bottom,#01aba054,#a6788613);
}

.case-tag-negative {
    border-radius: 999px;
    padding: 6px 12px;
    outline: 2px solid rgba(255, 255, 255, 0.726);
    background: linear-gradient(to bottom,#f88e8e 0%,#ff4d4d 100%);
    box-shadow:
    0 4px 12px rgba(255, 0, 0, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: small;
    font-family: Arial, sans-serif;
    max-width: 210px;
     /*font-family: Open Sans, 'KacstOffice';  font-size: 15px;*/
    /*color: white;*/
    /*background-image: linear-gradient(#CA5256, #c82333);*/
    /*box-shadow: 3px 2px 4px #888888;*/
    /*padding: 5px;*/
    /*text-align: center;*/
    /*border-radius: 7px;*/
    /*margin-left: 3px; margin-right: 3px; margin-bottom: 5px;*/
}

.case-tag-negative::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  right: 8px;
  height: 70%;
  border-radius: 999px;
  border: 1px solid #f0122118;
  background: linear-gradient(to bottom,#f012214d,#a6788613);
}

.case-tag-blue {
    font-family: Open Sans, 'KacstOffice';  font-size: 15px;
    color: white;
    background-image: linear-gradient(#4E90A4, #49bad8);
    /*background-color: dodgerblue; */
    box-shadow: 3px 2px 4px #888888;
    padding: 5px;
    text-align: center;
    border-radius: 7px;
    margin-left: 3px; margin-right: 3px; margin-bottom: 5px;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

@media screen and (max-width: 900px){
    #navtop_yellow {
        display: none;
    }
    #navtop_yellow_sm {
        display: flex; justify-content: space-between;
        background-color: #D1B755; min-height: 70px;
    }
    /*#welcome_centered {display: flex; max-width: 500px; margin: auto;}*/
    #welcome_irshad {display: none;}

    .irshad_nav_link {
        font-size: 13px;
    }
    .page-heading-black{
        font-size: 30px;
        line-height: 56px;
    }.page-heading-green{
        font-size: 30px;
        line-height: 56px;
    }

}