body {
    background-color: #000;
}

table {
    border: 2px solid #000;
    margin-top: 50px;
    margin: auto;
    background-color: #FFF;
    color: #000;
}

table span {
    height: 20px;
    line-height: 20px;
    background-color: #FCCF00;
    color: #000;
    border: 1px solid #000;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 10px;
}

td {
    padding: 5px;
    border-collapse: collapse;
    border: 1px solid #000;
}

#FS {
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;

}

#tablespace {
    width: 90%;
    padding: 3%;
    border: 3px solid #FFBF00;
}

#nav {
    width: 100%;
    height: 70px;
    background-color: #000;
}


#nav a {
    display: inline-block;
    color: #FFF;
    text-decoration: none;
    text-transform: uppercase;
    margin-left: 100px;
    padding-top: 35px;
}

#nav a:hover {
    color: #FCCF00;
    display: inline-block;
    margin-left: 100px;
    padding-top: 35px;
}


#search {
    width: 25px;
    height: 25px;
    display: inline-block;
    background-image: url('../img/search_white.png');
    background-size: contain;
}

#search:hover {
    background-image: url('../img/search_yellow.png');
}

.logo {
    margin-left: 10px;
    float: left;
    display: inline-block;
}

.logo img {
    height: 50px;
    margin-top: 10px;
}

#content {
    width: 100%;
    border-top: 10px solid #FCCF00;
    padding-top: 40px;
    /* Add breathing room */
}

.columns {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 2%;
    /* Adds breathing room between columns */
    /* Just to visualize */
    min-height: 100px;
}

.col_left {
    width: 48%;
    color: #FFF;
    background-color: rgba(0, 0, 0, 0.8);
    /* Optional: distinguish columns */
    padding: 10px;
    box-sizing: border-box;
}



.col_right {
    width: 48%;
    background-color: #fff;
    /* Optional: distinguish columns */
    padding: 10px;
    box-sizing: border-box;
}

.webterminal {
    width: 100%;
    height: 70vh;
    /* 90% of the viewport height */
    border: none;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black with 80% opacity */
}

#modal {
    width: 70%;
    height: 80vh;
    margin: auto;
    border: 5px solid #FCCF00;
    border-radius: 20px;
    padding: 20px;
    display: none;
    position: absolute;
    top: 100px;
    left: 15%;
    z-index: 10;
    background-color: #FFF;
}

#closeModal {
    width: 32px;
    height: 32px;
    float: right;
    border-radius: 5px;
    line-height: 20px;
}

#modalContent {
    color: #000;
}

#searchModal {
    width: 20%;
    margin: auto;
    border: 5px solid #FCCF00;
    border-radius: 20px;
    padding: 20px;
    display: none;
    position: absolute;
    top: 100px;
    left: 40%;
    z-index: 20;
    background-color: #FFF;
}

#login {
    width: 20%;
    margin: auto;
    border: 5px solid #FCCF00;
    border-radius: 20px;
    padding: 20px;
    z-index: 20;
    background-color: #FFF;
    text-align: center;
}

#lesson_menu {
    width: 65%;
    margin: auto;
    border: 5px solid #FCCF00;
    border-radius: 20px;
    padding: 20px;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
    text-align: center;
}

#lesson_menu table {
    border-collapse: collapse;
    color: white;
    /* white text */
    background-color: transparent;
    /* no background */
    width: 100%;
    border: 1px solid #FFF;
}

#lesson_menu th,
#lesson_menu td {
    border: 1px solid white;
    /* thin white lines */
    padding: 8px;
    font-size: 0.8em;
}

#lesson_menu button {
    background-color: #FCCF00;
    /* bright yellow */
    color: #000;
    /* white text */
    border: none;
    /* remove default border */
    padding: 8px 16px;
    /* space inside the button */
    border-radius: 8px;
    /* rounded corners (but not pill-shaped) */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#lesson_menu button:hover {
    background-color: #e6b800;
    /* darker yellow on hover */
}

#welcome {
    width: 50%;
    margin: auto;
    color: #FFF;
    text-align: center;
}

#loaderText {
    font-size: 1.4em;
    font-family: monospace;
    text-align: center;
    margin-top: 40px;
    animation: pulse 1.2s infinite;
}

#loaderImage {
    font-size: 1.4em;
    font-family: monospace;
    text-align: center;
    margin-top: 40px;
}

#loaderImage img {
    width: 150px;
}



@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}


.tabnav {
    margin-bottom: 10px;
}

.tablink {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-weight: bold;
}

.tablink.active {
    background-color: #FCCF00;
    color: #000;
}

.tabcontent {
    display: none;
    background-color: #fff;
    color: #000;
    padding: 15px;
    border: 2px solid #FCCF00;
    border-radius: 0 10px 10px 10px;
}

#notebook {
    height: 70vh;
    color: #000;
    position: relative;
    overflow: hidden;
    background-color: white;
    padding: 1em;
}

#notebook::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/nbpage.jpg');
    background-size: 100% 100%;
    /* force stretch */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    /* watermark fade */
    pointer-events: none;
    /* allow clicks through */
    z-index: 0;
}

#notebook>* {
    position: relative;
    z-index: 1;
}

.directory {
    width: 100%;
}

.directory h3 {
    color: #FCCF00;
}

.directory button {
    background-color: #FFBF00;
    border: 2px solid #FFF;
    border-radius: 9999px;
}


/* ---------------- */


#admin_dashboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 16px;
}

.admin_card {
    background: #000;
    /* your black */
    color: #fff;
    /* white text */
    border: 2px solid #FCCF00;
    /* yellow border */
    border-radius: 8px;
    padding: 16px;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.admin_card:hover {
    background: #333;
    /* dark gray hover */
    transform: scale(1.05);
}

.admin_icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.admin_title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 4px;
}

.admin_desc {
    font-size: 0.9em;
    color: #ccc;
}

/* ----------- */

.dashboard-card {
    background: #000;
    color: #fff;
    border-radius: 8px;
    border: 2px solid #FCCF00;
    padding: 10px;
    margin: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-icon {
    font-size: 40px;
}

.dashboard-content h3 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.dashboard-number {
    font-size: 28px;
    font-weight: 700;
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.edit_card_container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    /* space between cards */
    justify-content: flex-start;
    /* align left */
}

.edit_card {
    background: #000;
    color: #fff;
    border: 2px solid #FCCF00;
    border-radius: 8px;
    padding: 16px;
    width: calc(33% - 16px);
    /* 3 per row minus gap */
    min-height: 220px;
    /* fixed-ish height */
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.large_bucket {
    background: #000;
    color: #fff;
    border: 2px solid #FCCF00;
    border-radius: 8px;
    padding: 16px;
    width: calc(100% - 16px);
    min-height: 220px;
    /* fixed-ish height */
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
