/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200..1000&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 6rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(185, 95%, 38%);
    --title-color: hsl(228, 95%, 8%);
    --text-color: hsl(156, 97%, 13%);
    --body-color: hsl(228, 100%, 99%);
    --shadow-color: hsla(228, 80%, 4%, 0.1);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Nunito Sans", system-ui;
    --normal-font-size: 0.938rem;
    --smaller-font-size: 0.75rem;
    --tiny-font-size: 0.75rem;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-semi-bold: 600;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
    :root {
        --normal-font-size: 1rem;
        --smaller-font-size: 0.813rem;
    }
}

/*=============== BASE ===============*/

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: background-color 0.4s;
    max-width: 100%;
    width: 100%;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    all: unset;
}

/*=============== VARIABLES DARK THEME ===============*/
body.dark-theme {
    --first-color: hsl(48, 98%, 41%);
    --title-color: hsl(42, 96%, 51%);
    --text-color: hsl(240, 12%, 95%);
    --body-color: hsl(228, 24%, 16%);
    --shadow-color: hsla(228, 80%, 4%, 0.3);
}

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/
.dark-theme .sidebar__content::-webkit-scrollbar {
    background-color: hsl(228, 16%, 30%);
}

.dark-theme .sidebar__content::-webkit-scrollbar-thumb {
    background-color: hsl(228, 16%, 40%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    /* margin-inline: 1.5rem; */
    min-width: 100%;
}

.main {
    padding-top: 6rem;
    margin: 0.75rem;
}

/*=============== HEADER ===============*/
.school-header {
    background-color: transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.school-name {
    color: #0d6efd;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    font-weight: 700;
}

.school-address {
    color: #6c757d;
    text-align: left;
    font-size: 0.9rem;
}

.school-logo {
    margin: 5px;
    max-height: 80px;
    width: auto;
}

@media (max-width: 767px) {
    .school-address {
        text-align: left;
    }
}

/*=============== SIDEBAR ===============*/
.sidebar {
    position: fixed;
    height: fit-content;
    left: -150%;
    top: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    width: 360px;
    background-color: var(--body-color);
    box-shadow: 2px 0 24px var(--shadow-color);
    padding-block: 1.5rem;
    margin: 0.75rem;
    border-radius: 1rem;
    transition: left 0.4s, background-color 0.4s, width 0.4s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0;
}

.sidebar__container,
.sidebar__content {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

.sidebar__container {
    height: 100%;
    overflow: hidden;
}

.sidebar__user {
    display: grid;
    grid-template-columns: repeat(2, min-content);
    align-items: center;
    column-gap: 1rem;
    padding-left: 0.5rem;
}

.sidebar__img {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--first-color);
    border-radius: 3%;
    overflow: hidden;
    display: grid;
    justify-items: center;
}

.sidebar__img img {
    position: absolute;
    /* width: 36px; */
    /* bottom: -1px; */
}

.sidebar__info h3 {
    font-size: var(--normal-font-size);
    color: var(--title-color);
    transition: color 0.4s;
}

.sidebar__info span {
    font-size: var(--normal-font-size);
}

.sidebar__content {
    overflow: hidden auto;
}

.sidebar__content::-webkit-scrollbar {
    width: 0.4rem;
    background-color: hsl(228, 8%, 85%);
}

.sidebar__content::-webkit-scrollbar-thumb {
    background-color: hsl(228, 8%, 75%);
}

.sidebar__title {
    width: max-content;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.sidebar__list,
.sidebar__actions {
    display: grid;
    row-gap: 1.5rem;
}

.sidebar__link {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    column-gap: 1rem;
    color: var(--text-color);
    padding-left: 1rem;
    transition: color 0.4s, opacity 0.4s;
}

.sidebar__link i {
    font-size: 2rem;
}

.sidebar__link span {
    font-weight: var(--font-semi-bold);
}

.sidebar__link:hover {
    color: var(--first-color);
}

.sidebar__actions {
    margin-top: auto;
}

.sidebar__actions button {
    cursor: pointer;
}

.sidebar__theme {
    width: 100%;
    font-size: 1.25rem;
}

.sidebar__theme span {
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
}

/* Show sidebar */
.show-sidebar {
    left: 0;
    color: rgb(181, 4, 160);
}

/* Active link */
.active-link {
    color: var(--first-color);
}

.active-link::after {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 20px;
    background-color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (min-width: 2400px) {
    .header__container {
        padding-inline: 1rem;
    }

    .sidebar {
        width: max-content;
    }

    .sidebar__info,
    .sidebar__link span {
        display: none;
    }

    .sidebar__user,
    .sidebar__list,
    .sidebar__actions {
        justify-content: center;
    }

    .sidebar__user,
    .sidebar__link {
        grid-template-columns: max-content;
    }

    .sidebar__user {
        padding: 0;
    }

    .sidebar__link {
        padding-inline: 2rem;
    }

    .sidebar__title {
        padding-inline: 0.5rem;
        margin-inline: auto;
    }
}

.lightcolor-1 {
    background-color: rgb(243, 196, 239);
}

.lightcolor-2 {
    background-color: rgb(190, 239, 245);
}

.gap {
    margin-bottom: 0.5rem;
}

/* Buttons on top */
.buttonframe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav ion-icon {
    font-size: 2rem;
    color: var(--iclr);
    padding: auto;
}

.nav__text {
    font-size: 1rem;
    text-wrap: pretty;
    text-align: center;
    align-self: center;
    font-weight: 500;
    color: var(--tclr);
}

.img-wrapper {
    max-width: 100%;
    height: auto;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    object-fit: cover;
    border-radius: 5px;
    z-index: 1100;
    border: 4px double blueviolet;
    /* transition: border 1s ease-out; */
}

.img-wrapper span {
    position: absolute;
    bottom: 0;
    left: 0;
    height: auto;
    width: 100%;
    background-color: rgb(251, 90, 4);
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    /* box-sizing: border-box; */
    /* border: 1px solid red; */
}

.img-wrapper:hover span {
    background-color: rgb(0, 37, 249);
    /* border: 4px solid rgb(43, 0, 255); */
    color: white;
}

.img-wrapper:hover {
    border: 4px solid blueviolet;
    color: white;
}

/* KNMHSS OWN STYLESS */
/* Bottom right text */
.knimg-text-block {
    position: absolute;
    bottom: 10px;
    font-size: 0.75em;
    background-color: darkgreen;
    color: white;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 5px;
}

.kn-fonts-style {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2em;
    line-height: 1.5em;
}

.kn-highlighting {
    background-color: blueviolet;
    color: white;
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

.kn-hls-blue {
    background-color: blue;
    color: white;
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

.kn-hls-green {
    background-color: green;
    color: yellow;
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

.kn-hls-pink {
    background-color: magenta;
    color: white;
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

.kn-hls-byellow {
    background-color: blue;
    color: yellow;
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

.kn-hls-ygreen {
    background-color: yellow;
    color: green;
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

/* KNMHSS OWN STYLESS */
thead>tr,
th:first-child,
td:first-child {
    position: sticky;
    left: 0px;
    font-weight: 700;
    background-color: rgb(19, 2, 148);
    color: white;
    border-radius: 5px 0px 0px 5px;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 8px #f481811a;
}

.homework-item {
    border-left: 3px solid #0d6efd;
    padding-left: 10px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.remove-homework {
    cursor: pointer;
    color: #dc3545;
}

.kn-hover-animation a:hover {
    border: 2px solid green;
    border-radius: 5px;
    padding-left: 5px;
    vertical-align: middle;
    color: rgb(255, 2, 204);
    background-color: beige;
    font-weight: 200;
    animation: kn-animation1 1.5s;
}

@keyframes kn-animation1 {
    from {
        background-color: yellow;
    }

    to {
        background-color: beige;
    }
}

.kn-bgcolor-1 {
    background-color: darkgreen;
    color: white;
    font-weight: 700;
}

.kn-bgcolor-2 {
    background-color: rgb(2, 34, 215);
    color: white;
    font-weight: 700;
}

.kn-stu-menu-item {
    font-size: 2em;
}

#myTable td a:hover {
    background-color: #085d00;
    color: white;
    font-weight: 700;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 2px;
}

/* CUSTOM ALERT FOR GIVING MESSAGE */
.custom-alert {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

.custom-alert-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
    max-width: 500px;
    text-align: center;
    border-radius: 5px;
    border: solid green 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.custom-alert-header {
    background-color: #fefefe;
    margin: 5px;
    padding: 5px;
    width: 100%;
    /* Could be more or less, depending on screen size */
    border-radius: 5px;
    max-width: 500px;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    font-size: 1.2em;
    background-color: green;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#alertMessage {
    font-size: 18px;
    color: #000000;
    margin-bottom: 20px;
}

/* Menu Item Sections */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border: solid red 5px;
}

.category-header {
    background: linear-gradient(90deg, #4caf50, #45a049);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
}

.class-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.class-name {
    background: linear-gradient(90deg, #004c7e, #1976d2);
    color: white;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.link-item {
    padding: 8px 15px;
    border-bottom: 2px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 1.2rem;
}

.link-item:last-child {
    border-bottom: none;
}

.link-item:hover {
    background-color: #f8f9fa;
}

.link-item a {
    text-decoration: none;
    /* color: rgb(1, 175, 33); */
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 
.link-item:nth-child(odd) i {
  font-size: 1.8rem;
  color: #fb02e6;
}

.link-item:nth-child(even) i {
  font-size: 1.8rem;
  color: #0030f1;
} */

.link-item a:hover {
    background-color: blue;
    color: white;
    font-weight: bold;
}

.activity-link {
    color: #0a6d01 !important;
}

.evening-link {
    color: #dc3545 !important;
}

.eca-link {
    color: #fd7e14 !important;
}

.club-link {
    color: #6f42c1 !important;
}

.special-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.special-link {
    display: block;
    padding: 10px 15px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.special-link:hover {
    color: #007bff;
    transform: translateX(5px);
}

.empty-cell {
    color: #999;
    font-style: italic;
}