:root {
    --cell-width: 160px;
    --cell-height: 80px; 
    /* --cell-width: 10rem;
    --cell-height: 5rem; */
    --span: 1; /* Default value */
    --row: 0; /* Default value */
    --main-color: #1E87BE;

    --pri-text: #C3CBDD;
    --sec-text: #9c9a9a;
    --back: 	#12151F;
    --border: 	#2C2F36;
    --card:     #1A1E2A;
}

@font-face {
    font-family: 'HelveticaNeueLTArabicRoman';
    src: url('/static/fonts/HelveticaNeueLTArabicRoman.eot');
    src: url('/static/fonts/HelveticaNeueLTArabicRoman.eot') format('embedded-opentype'),
    url('/static/fonts/HelveticaNeueLTArabicRoman.woff2') format('woff2'),
    url('/static/fonts/HelveticaNeueLTArabicRoman.woff') format('woff'),
    url('/static/fonts/HelveticaNeueLTArabicRoman.ttf') format('truetype'),
    url('/static/fonts/HelveticaNeueLTArabicRoman.svg#HelveticaNeueLTArabicRoman') format('svg');
}

html, body {
    font-family: HelveticaNeueLTArabicRoman, tahoma;
}

body {
    margin: 0;
    background: var(--back);
    color: var(--pri-text);
    line-height: 1.2;
}
h2, h3{
    margin: 4px;
}

.calendar {
    display: grid;
    grid-template-rows: repeat(auto-fit, var(--cell-height));
    gap: 2px;
    background: var(--border);
    border: 1px solid #0084BD;
    width: fit-content;
    grid-template-columns: 100px repeat(5, var(--cell-width));
    grid-auto-rows: var(--cell-height); /* Add this line */
    overflow: visible; /* Change from hidden */
    margin: 6px;
    box-shadow: var(--main-color) 0px 0px 7px 0px;
}

.header {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #2980b9;
    
}

.time-slot {
    background: #0084bd;
    text-align: center;
    font-size: 14px;
    color: white;
    height: var(--cell-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-header {
    background: black;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin: -0.6px;
}

.cell {
    background: #111625;
    min-height: var(--cell-height);
    overflow: visible !important;
    position: relative;
    background-blend-mode: color;
}

.course-block {
    padding: 6px;
    margin: 2px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
    line-height: 1.4;
    overflow: hidden;
    width: calc(var(--cell-width) - 12px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0,0,0,0.1);
    /* height: calc(var(--span) * var(--cell-height) - 4px) !important; */
    position: absolute;
    margin-left: 2px;
    margin-right: 2px;
    z-index: 2;
    left: 2px;
    right: 2px;
    box-sizing: border-box;
}

.course-block:hover {
    height: calc(2 * var(--cell-height) - 4px) !important;
    /* box-shadow: 0 2px 15px 1px rgba(0, 0, 0, 0.3); */
    box-shadow: inset 0 0 0 100px #33333314;
    z-index: 99;
    /* backdrop-filter: brightness(25%); */
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.course-time {
    font-size: 11px;
    background: rgba(255,255,255,0.15);
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 4px 0;
    direction: ltr;
    width: 110px;
    text-align: center;
}

.course-info {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.course-room {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 3px;
}



.calendar-main {
    width: fit-content;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin: 26px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    background-color: var(--card);
    padding: 12px;
    border-radius: 16px;
    align-items: center;
    position: relative;
}

.cal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter{
    background: #b3b3b308;
    padding: 15px;
    border-radius: 16px;
    margin-left: 16px;
    height: 100%;
    overflow-y: scroll;
    direction: ltr;
    margin-bottom: auto;
    min-width: 430px;
    width: 450px;
    box-sizing: border-box;
}

.filter::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.filter::-webkit-scrollbar-thumb {
    background: #333847;
    border-radius: 8px;
    /* border: 2px solid #1E1E1E; */
}
.filter::-webkit-scrollbar-track {
    background: #1f2127;
    border-radius: 8px;
}


.filterComp {
    direction: rtl;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    margin-right: auto;
}

.navbtn {
    /* padding: 8px 16px; */
    border: 1px solid #3498db;
    background: #3498db;
    /* border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: white; */
}

.navinput {
    width: 30px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    border: .5px solid #0084bd !important;
    /* box-shadow: 0px 0px 5px #acbece, inset 0 2px 2px #8f8f8f; */
    outline: medium none;
    font-size: 16px;
    /* background-color: #c1c1c1;
    color: var(--sec-text); */
}

.navnum {
    display: flex;
    gap: 5px;
    color: var(--sec-text);
    font-size: 20px;
}

.navbtn:disabled:hover,
.navbtn[disabled]{
  border: 1px solid #999999;
  background-color: #ffffffa6;
  color: #666666;
  cursor: not-allowed;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* input[type=number]{
    -moz-appearance: textfield;
} */

label:has(input[type="checkbox"]:checked) {
    color: white;
}

/* label:has(input[type="checkbox"]:checked:hover) {
    color: rgb(85, 85, 85);
} */

label:has(input[type="checkbox"]) {
    color: #ffffff85;
}

label:has([type="checkbox"]:hover) {
    color: #dcdada;
}

.weekdays > * {
    cursor: pointer;
}

header {
    border-bottom: .5px solid #414345;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    padding: 16px 32px;
    box-shadow: rgba(149, 157, 165, 0.047) 0px 8px 24px;
    position: sticky;
    top: 0;
    backdrop-filter: blur(32px);
    background-color: 	#1a1e2aab;
    z-index: 999;
    align-items: center;
    flex-direction: row-reverse;
    color: #F0F0F5;
}

.largeImage {
    /* border-right: 1px solid #185edd4f; */
    padding: 0 12px;
}

.largeImage > img {
    height: 75px;
}











/* Base Styles */
/* .filter {
    direction: rtl;
    font-family: system-ui, sans-serif;
    max-width: 340px;
    margin: 1.2rem auto;
} */

/* Filter Section */
.filterComp {
    background: #fff;
    border-radius: 7px;
    margin-bottom: 0.7rem;
    box-shadow: 0 1.5px 5px rgba(0,0,0,0.06);
    overflow: hidden;
    /* border: 1px solid #f3f4f6; */
    transition: box-shadow 0.17s, border 0.17s;
    font-size: 0.99rem;
}
.filterComp.active {
    box-shadow: 0 4px 16px 0 rgba(31,41,55,0.11);
    border-color: #b8d8ff;
}

/* Header */
.filterComp > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    /* background: #f7fafd; */
    cursor: pointer;
    font-weight: 600;
    color: white;
    font-size: 1em;
    transition: background 0.16s, color 0.13s;
    position: relative;
    user-select: none;
}
.filterComp > label:focus, .filterComp > label:hover {
    background: #57575724;
    /* color: #1865ad; */
    outline: none;
}

/* Caret Icon */
.filterComp > label::after {
    content: "";
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    position: absolute;
    left: 1rem;
    top: 50%;
    margin-top: -4px;
    transition: transform 0.23s cubic-bezier(.4,2,.6,1), border-color 0.18s, padding 0.17s;;
}
.filterComp.active > label::after {
    transform: rotate(-135deg);
    border-color: white;
}

/* Content Area */
.filterComp ul {
    margin: 0;
    padding: 0 0.7rem;
    max-height: 0;
    overflow: hidden;
    /* background: #fff; */
    transition: max-height 0.23s cubic-bezier(.4,2,.6,1), padding 0.17s;
    border-radius: 0 0 7px 7px;
    font-size: 0.97em;
}
.filterComp.active ul {
    max-height: 600px;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    margin: 8px;
    background-color: #0000000f;
    /* border-top: 1px solid #f3f4f6; */
}

/* Checkbox Items */
.weekdays label, .subject-drs div {
    display: flex;
    border-bottom: 1px solid #f6f6f64f;
    direction: ltr;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
    transition: color 0.13s;
}
.weekdays:last-child, .subject-drs div:last-child {
    border-bottom: none;
}
/* .weekdays:hover, .subject-drs div:hover {
    background: #f5f8fb;
} */

/* Checkbox */
input[type="checkbox"] {
    width: 0.99rem;
    height: 0.99rem;
    margin-left: 0.6rem;
    accent-color: #2383e2;
    cursor: pointer;
    border-radius: 3px;
    clip-path: circle(46% at 50% 50%);
}

.weekdays label, .subject-drs label {
    display: flex;
    justify-content:flex-end;
}
.weekdays label:hover:has(input[type="checkbox"]:checked), .subject-drs label:hover:has(input[type="checkbox"]:checked) {
    color: #d7d7d7;
}



#daysoffFilter {
    background-image: url("../images/moon.png");
    background-size: 253px;
    background-position-y: bottom;
    background-position-x: right;
}

#daysoffFilter ul {
    background-color: #ffffff0d;
}









.header-bar {
    display: flex;
    margin: 24px;
    width: 100%;
    justify-content: space-evenly;
    margin: 0 16px;
    align-items: center;
}

.bar-comp {
    padding: 32px;
    /* border-bottom: 1px solid #185edd4f; */
    font-size: 24px;
    cursor: pointer;
    /* transition: background-color 0.25s, color 0.25s; */
    transition: all .2s;
    height: 100%;
    width:  100%;
    margin: 16px;
    text-align: center;
    border-radius: 9px;
}

.bar-comp:last-child {
    border: none;
}

.bar-comp:hover {
    background-color: #00000008;
    color: var(--sec-text);
}

#home::after {
    /* content: url("../svg/home.svg"); */

    display: block;
    /* width: 32px; */
    text-align: center;
}

.border {
    height: 100px;
    width: 1px;
    background-color: var(--border);
}


.shadow {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    box-shadow: #000000e3 0px 0px 40px 15px;
    z-index: 99;
    margin-inline: auto;
    /* height: 990px; */
    /* width: 1345px; */
    height: 100%;
    width: 100%;
    background: #000000e3;
    text-align: center;
    align-content: center;
    font-size: 42px;
    border-radius: 1%;
    cursor: pointer;
}


.calfooter {
    display: flex;
    justify-content: space-around;
    margin-top: 26px;
    width: 100%;
}

.action-buttons {
    margin-right: auto;
    margin-left: 16px;
    display: flex;
    align-items: center;
}

.btn {
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1.5px 5px rgb(0, 0, 0);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    padding: 8px 16px;
    border: 1px solid #3498db;
    font-size: 16px;
    font-weight: 600;
}

.btn:hover {
    background: #f8f9fa;
    color: var(--border);
}


.details {
    background-color: var(--main-color);
    color: var(--pri-text);
    font: 16px;
    border: none;
    margin-right: auto;
}




.popup {
    position: fixed;
    text-align: center;
    align-content: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.452);
    height: 100%;
    width: 100%;
    top: 0;
    z-index: 9999;
}

.popup-container {
    width: 750px;
    min-height: 500px;
    background-color: #1A1E2A;
    border-radius: 16px;
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 24px;
}

.content {
    display: flex;
    align-items: center;
    height: 90%;
    width: 100%;
    flex-direction: column;
}

#close {
    margin-top: 24px;
}

table {
    border-radius: 16px;
    direction: rtl;
    border-collapse: collapse;
}

table th,table td {
    /* border: solid 1px #2C2F36; */
    padding: 12px;
}

table th {
    background-color: #151823;
}

table td {
    background-color: #252b3d;
}

tbody tr:last-child td:first-child {
    border-radius: 0 0 8px 0;
}

/* Round bottom-left corner of the first cell */
tbody tr:last-child td:last-child {
    border-radius: 0 0 0 8px;
}

.link {
    color: var(--sec-text);
    margin-top: 24px;
}

.like {
    background-color: rgb(191 46 46);;
    height: 35px;
    width: 35px;
    margin: 12px;
    padding: 0 8px;
    border: 1px solid rgb(145, 0, 0);
}

.warning {
    color: rgb(241 50 50);
    font-size: 16px;
    margin-bottom: 16px;
}

footer{
    display: flex;
    background-color: #0f131c;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    direction: ltr;
    padding: 25px 52px 16px 52px;
    font-size: 22px;
    margin-top: 42px;
    box-shadow: rgba(149, 157, 165, 0.047) 8px 0px 24px;
}

.footer-content {
    /* display: flex;
    justify-content: space-between;
    align-items: center; */

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
    width: 100%;
}

footer img {
    height: 26px;
}

.socials {
    margin-top: 32px;
}

.socials a {
    text-decoration: none;
    color: var(--pri-text);
}