*{margin: 0px;padding: 0px;box-sizing: border-box;scroll-behavior: smooth;}

.h-f{
    height: fit-content;
}
.w-f{
    width: fit-content;
}
.fs-14{
    font-size: 14px;
}
.border-b8{
    border: 2px solid #b8b8b8;
    border-radius: 5px;
}
.radius-30 {
    border-radius:30px;
}
.mt-8 {
    margin-top: 8rem;
}
.mb-8 {
    margin-bottom: 8rem;
}


:root {
  --orange1: #FA7808;
  --orange2: #FB8A29;
  --orange3: #FFA659;
  --orange4: #FBB67A;
  --blue1: #2A2E5D;
  --blue2: #4A4E8D;
  --blue3: #7478A3;
  --blue4: #B0B3C5;
  --white: #fff;
  --green: #196B24;
  --lightgreen: #CBDCD0;
  --mylight: #DEE3D5;
  --verylight: #ECF3E4;
  --red: #C00000;
}
.orange1 {
    color: var(--orange1);
}
.bg-orange1 {
    background-color: var(--orange1);
}
.orange2 {
    color: var(--orange2);
}
.bg-orange2 {
    background-color: var(--orange2);
}
.orange3 {
    color: var(--orange3);
}
.bg-orange3 {
    background-color: var(--orange3);
}
.orange4 {
    color: var(--orange4);
}
.bg-orange4 {
    background-color: var(--orange4);
}
.blue1 {
    color: var(--blue1);
}
.bg-blue1 {
    background-color: var(--blue1);
}
.blue2 {
    color: var(--blue2);
}
.bg-blue2 {
    background-color: var(--blue2);
}
.blue3 {
    color: var(--blue3);
}
.bg-blue3 {
    background-color: var(--blue3);
}
.blue4 {
    color: var(--blue4);
}
.bg-blue4 {
    background-color: var(--blue4);
}
.green {
    color: var(--green);
}
.bg-green {
    background-color: var(--green)!important;
}
.red {
    color: var(--red);
}
.bg-red {
    background-color: var(--red)!important;
}
.lightgreen {
    color: var(--lightgreen);
}
.bg-lightgreen {
    background-color: var(--lightgreen)!important;
}
.mylight {
    color: var(--mylight);
}
.bg-mylight {
    background-color: var(--mylight)!important;
}
.verylight {
    color: var(--verylight);
}
.bg-verylight {
    background-color: var(--verylight)!important;
}






main {
    display: block;
    margin-top: calc(5% + 80px);
    margin-bottom: 5%;
    
}

main table {
    border-collapse: collapse;
    padding: 1px;
    margin: 10px auto;
    text-align: center;
}

th,td {
    border: 1px solid #000;
    
}
th {
    padding: 0.5rem;
}
main .myborder  {
    border: 4px solid var(--orange1);
    border-radius: 23px;
    box-shadow: 3px 4px 8px rgba(0,0,0,0.5);
}

.form input,.form select {
    color: rgba(42, 46, 93, 0.7);
    font-size: 14px;
    border: 2px solid #B8B8B8;
    border-radius: 5px;
    padding: 8px 10px;
    display: inline-block;
    width: 85%;
}
.form textarea {
    color: rgba(42, 46, 93, 0.7);
    font-size: 14px;
    border: 2px solid #B8B8B8;
    border-radius: 5px;
    padding: 8px 10px;
    display: inline-block;
}
.form input.filetype {
    height: 50px;
    border-radius: 15px;
    margin: 5px;
    margin-top: 10px;
    align-content: center;
}
.form button.savebtn {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 18px;
    background-color: var(--orange1);
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

.Assignment th,.Assignment td {
    width:200px;
    height: 80px;
    padding: 10px;
    background-color: #A0C8A0;
    border-color: #fff;
    border-width: 2px;
    font-weight: 500;
}
.Weekly_Assignment th,.Weekly_Assignment td {
    width:200px;
    height: 80px;
    padding: 10px;
    background-color: #A0C8A0;
    border-color: #fff;
    border-width: 2px;
    font-weight: 500;
}
.Weekly_Assignment input{
    width: 100%;
    height: 100%;
    background-color: inherit;
    border: none;
    text-align: center;
}
.Weekly_Assignment button.savebtn ,.Performance button.savebtn,.Presence button.savebtn {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 18px;
    background-color: var(--orange1);
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

.Performance th,.Performance td {
    width:200px;
    height: 60px;
    padding: 10px;
    border-color: #647064;
    border-width: 1px;
    font-weight: 500;
}
.Performance input{
    width: 100%;
    height: 100%;
    background-color: inherit;
    border: none;
    text-align: center;
}
.Exam_schedule th,.Exam_schedule td {
    width:160px;
    height: 40px;
    padding: 10px;
    border-color: #647064;
    border-width: 1px;
    font-weight: 500;
}
.Presence th,.Presence td {
    width:160px;
    height: 40px;
    padding: 10px;
    border-color: #647064;
    border-width: 1px;
    font-weight: 500;
}
.report th,.report td {
    width:160px;
    height: 40px;
    padding: 10px;
    border-color: #647064;
    border-width: 1px;
    font-weight: 500;
}
@media only screen and (max-width: 767px){
    .Assignment th,.Assignment td,.Performance th,.Performance td,.Exam_schedule th,.Exam_schedule td,.report th,.report td {
    padding: 5px;

}

}

.chatbody {
    height: 50vh;
}

.chatfooter {
    width: 100%;
    height: 52px;
    padding: 4px 0 ;
    background: #E4E4E4;
    box-shadow: 0px -0.33px 0px 0px #A6A6AA;
    display: flex;
    align-items: center;
}
.chatfooter  .filessvg {
    width: 15%;
    display: grid;
    place-items: center;
    height: 100%;
    
}
.chatfooter .textinput {
    width: 70%;
}
.chatfooter .textinput textarea {
    border: 0.5px solid #8E8E93;
    outline: none;
    border-radius: 20px;
    height: 32px;
    width: 100%;
    padding: 5px 10px;
    line-height: 1;
    overflow-y: hidden;
    font-size: 20px;
    word-spacing: -1px;
}
.chatfooter  .sendsvg {
    width: 15%;
    display: grid;
    place-items: center;
    height: 100%;
}

/* Better date controls across pages */
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid #d6deea;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    color: #1f2b3d;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(42, 46, 93, 0.08);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus {
    border-color: #86a8ff;
    box-shadow: 0 0 0 0.2rem rgba(74, 78, 141, 0.14), 0 14px 28px rgba(42, 46, 93, 0.12);
    background: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    filter: saturate(1.15) contrast(1.05);
    background: linear-gradient(135deg, rgba(250, 120, 8, 0.12), rgba(42, 46, 93, 0.12));
    border-radius: 10px;
    padding: 6px;
}

input[type="date"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover,
.flatpickr-input:hover {
    border-color: #a7b8d9;
    box-shadow: 0 12px 26px rgba(42, 46, 93, 0.1);
}

.flatpickr-input[readonly] {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.flatpickr-calendar {
    border: 1px solid rgba(214, 222, 234, 0.95);
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.18);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.flatpickr-months {
    background: linear-gradient(135deg, #2A2E5D 0%, #4A4E8D 55%, #FA7808 100%);
    padding: 8px 6px;
}

.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.flatpickr-current-month .cur-month,
.flatpickr-current-month input.cur-year,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-weekdays {
    background: #f6f8fc;
}

span.flatpickr-weekday {
    color: #4A4E8D;
    font-weight: 700;
}

.flatpickr-days {
    padding: 10px;
}

.flatpickr-day {
    border-radius: 12px;
    max-width: 38px;
    line-height: 38px;
    height: 38px;
    margin: 2px;
    border: none;
    color: #25324a;
    font-weight: 600;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: rgba(42, 46, 93, 0.09);
    transform: translateY(-1px);
}

.flatpickr-day.today {
    border: 1px solid rgba(250, 120, 8, 0.55);
    background: rgba(250, 120, 8, 0.08);
    color: #d86a07;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: linear-gradient(135deg, #FA7808 0%, #ff9a3c 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(250, 120, 8, 0.3);
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange {
    background: rgba(250, 120, 8, 0.12);
    box-shadow: none;
}

.flatpickr-time {
    border-top: 1px solid #edf1f7;
    background: #fbfcff;
}

.numInputWrapper span.arrowUp:after,
.numInputWrapper span.arrowDown:after {
    border-bottom-color: #4A4E8D;
    border-top-color: #4A4E8D;
}

@media only screen and (max-width: 767px) {
    input[type="date"],
    input[type="datetime-local"],
    input[type="month"],
    input[type="week"] {
        min-height: 44px;
        padding: 9px 12px;
        border-radius: 12px;
    }

    .flatpickr-calendar {
        width: min(92vw, 340px);
    }
}

