﻿:root {
    --primary-color: #9b856f;
    --secondary-color: #27AE60;
    --thirdary-color: #64380B;
    --accent-color: #F39C12;
    --background-color: #F4F6F7;
    --text-color: #2C3E50;
    --normal-text-color: #080808;
}

:root.dark-mode {
    --primary-color: #9b856f;
    --secondary-color: #2ECC71;
    --thirdary-color: #64380B;
    --accent-color: #F1C40F;
    --background-color: #1E272E;
    --text-color: #ECF0F1;
    --normal-text-color: #080808;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.school-header {
    position: fixed !important;
    z-index: 10000;
    width: 100%;
    background: var(--primary-color);
    height: 75px;
    top: 0px;
}

.school-nav-right-menu {
    background-image: url(../img/bee-net.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 260px;
    height: 60px;
    display: flex;
    justify-content: end;
    align-items: center;
    color: var(--normal-text-color) #2C3E50;
}

.school-nav-logout {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.8;
}

.school-nav-version {
    padding: 0px 10px 0px 10px;
    font-weight: 600;
}
.school-brand img {
    height: 50px;
}

.school-brand-name {
    font-size: 28px;
    width: 100%;
    color: var(--normal-text-color);
}

.school-logo-nav {
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%
}

.login-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.login-logo img {
    height: 90px;
    background: white;
    padding: 15px;
    border-radius: 3px;
}

.login-container h2 {
    margin-bottom: 5px;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
}

.dark-mode input {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.dark-mode select {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.login-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border: none;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background-color: #1B4F72;
}

.toggle-theme {
    margin-top: 15px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--accent-color);
}


.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: var(--background-color);
    margin-top: 150px;
    margin-left : 60px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 10px 20px 10px 20px;
    height: 130px;
    margin-bottom: 10px;
}

.page-header-title {
    color: var(--normal-text-color);
    font-size: 20px;
}

.filter-wrapper {
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
}

.filter-container {
    font-size: 15px;
    display: flex;
    gap: 10px;
}

.filter-item {
    width: 180px;
}

.filter-param {
    color: whitesmoke;
    font-size: 18px;
}

.filter-btn {
    color: white;
    background-color: var(--background-color);
    border-color: var(--background-color);
    margin-top: 27px;
    width: 100px;
    height: 36px;
}

.filter-btn:hover {
    color: aqua;
}

.sidebar {
    position: absolute;
    width: 60px;
    height: 100vh;
    background: var(--primary-color);
    overflow: hidden;
    transition: 0.5s;
    margin-top: 150px;
    z-index: 9999;
    left: 0px;
}

.sidebar:hover {
    width: 300px;
}

.sidebar ul {
    position: relative;
    min-height: 85vh;
    padding: 0px;
}

.sidebar ul li {
    list-style: none;
    border-radius: 10px;
}

.sidebar .main-menu:hover {
    background: #ff8d01;
}

.sidebar ul li a {
    position: relative;
    display: flex;
    white-space: nowrap;
    text-decoration: none;
    font-size: 18px;
    color: white;
}

.sidebar ul li a .icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 65px;
    height: 65px;
    text-decoration: none;
    color: var(--normal-text-color);
}

.sidebar ul li a .text {
    color: #3e2204;
    font-size: 20px;
}

.sidebar-li-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sb-list-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 20px;
    transition: 0.5s;
}

.sb-list-menu i {
    font-size: 20px;
}

.sb-menu-treeview {
    position: relative !important;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: 0.5s;
    min-height: 0px !important;
}

.sb-menu-treeview li {
    width: 320px;
}

.sb-menu-treeview.active {
    display: flex;
}

.sb-menu-treeview.closed {
    display: none;
}

.sb-list-menu.active i {
    transform: rotate( -90deg);
}

.sb-sub-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 15px;
}

.sidebar .menu-item:hover {
    background: var(--background-color);
}

.school-text {
    color: var(--normal-text-color);
}

.dbd-container {
    position: relative;
    width: 100%;
    padding: 20px;
    background-color: #a69d92;
    overflow: hidden;
    height: 100vh;
}

.dbd-item-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.dbd-container::before {
    content: "";
    position: absolute;
    left: -250px;
    top: 80px;
    width: 1200px;
    height: 1200px;
    background: linear-gradient(#613104, #F3A26D);
    border-radius: 50%;
    transform: translate(-150px, -120px);
}

.dbd-container::after {
    content: "";
    position: absolute;
    top: 50px;
    right: 20px;
    width: 600px;
    height: 600px;
    background: linear-gradient(#F3A26D, #613104);
    border-radius: 50%;
    transform: translate(250px, -120px);
}

.dbd-item {
    margin: 20px;
    min-width: 300px;
    height: 180px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    z-index: 100;
    cursor: pointer;
}

.dbd-img-item {
    margin-bottom: 10px;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border: 1px solid white;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: #37180f;
}

.dbd-title-item {
    font-size: 24px;
    color: white;
}

.dbd-text-item {
    font-size: 30px;
    color: white;
}

.dbd-table-container {
    width: 100%;
    z-index: 100;
    background-color: transparent;
    padding: 20px;
    border-radius: 5px;
    overflow-y: auto;
    height: 60vh;
}

.dbd-table-container table {
    color: ghostwhite;
    font-size: 14px;
    text-align: center;
}

.dbd-table-container table thead tr {
    background-color: #6a3e10;
    color: white;
    font-size: 16px;
}

.dbd-table-container table tbody tr {
    background-color: whitesmoke;
    color: var(--normal-text-color);
    font-size: 16px;
    cursor: pointer;
}

.input-form-wrapper {
    position: relative;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
}

.input-form-container {
    width: 600px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    margin: 0px 5px 0px 5px;
}

.input-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--thirdary-color);
    padding: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.input-form-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0px 0px 0px;
}

.input-form-title {
    padding-left: 10px;
}

.input-form-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-form-img img {
    width: 40px;
    border-radius: 50%;
}

.input-form-key {
    flex: 1;
}

.input-form-value {
    flex: 2;
}

.input-form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-container {
    flex:1;
    height: 500px;
    width: 500px;
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgb(194 112 45);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    backdrop-filter: blur(5px);
}

.panel-body {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.panel-table {
    display: flex;
    width: 100%;
    padding: 20px;
    max-height: 380px;
    overflow-y: auto;
}

.panel-table table {
    width: 100%;
}

.panel-table table thead tr {
    text-align: center;
    color: whitesmoke;
}

.panel-table table tbody tr {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
}

.panel-body-header {
    display: flex;
    justify-content: flex-end;
    padding: 0px 20px 10px 20px;
}

.panel-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
}

.panel-input-container span {
    width: 200px;
    text-align: right;
    padding-right: 15px;
}

.panel-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.panel-btn-container button {
    margin-top: 0px;
    margin: 0px 5px 0px 5px;
}

.panel-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-icon-container span {
    margin: 0px 5px 0px 5px;
}

.dbd-graph-item {
    position: relative;
    z-index: 100;
    height: 400px;
    display: flex;
    justify-content: center;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    margin: 20px;
    width: 100%;
    backdrop-filter: blur(25px);
    box-shadow: 0 5px 35px rgba(0, 0, 0, 0.1);
}

.admin-header {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 22px;
    z-index: 100;
}

.sch-item-wrapper {
    flex: 1;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sch-card {
    width: 400px;
    height: 430px;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 50px 20px 20px 20px;
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
}

.sch-card-img {
    height: 100px;
    background-color: #e29a5f;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    font-size: 50px;
    color: #2b2626;
    border-radius: 50%;
    margin-top: -30px;
    margin-bottom: 15px;
    border: 2px solid #f9d6ba;
}

.sch-card-title {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    width: 100%;
    padding: 10px;
}

.sch-title {
    background-color: #84613c;
    width: 95%;
    border-radius: 5px;
    text-align: center;
}

.sch-card-kv {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px 10px 25px;
}

.sch-card-value {
    font-size: 16px;
}

.sch-card-footer button {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sch-form-container {
    position: relative;
    z-index: 100;
    width: 600px;
    background-color: rgba(255, 255, 255, 0.1);
    height: 680px;
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
}

.admin-search {
    width: 450px;
    display: flex;
}

.admin-search span {
    padding-right: 20px;
}

.page-header-container {
    width: 100%;
    height: 50px;
    position: relative;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
}

.room-mgn-container {
    position: relative;
    z-index: 100;
    width: 100%;
    display: flex;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    padding: 10px;
}

.room-mgn-table {
    flex: 4;
}

.room-mgn-control {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.room-mgn-ctl-container {
    margin-top: 65px;
}

.room-mgn-table-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: cyan;
    padding: 0px 20px 0px 20px;
}

.room-mgn-btn {
    color: white;
    background-color: var(--background-color);
    border-color: var(--background-color);
    margin-top: 10px;
    width: 130px;
    height: 36px;
}

.room-mgn-btn:hover {
    color: aqua;
}

.person-card-container {
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    height: calc(100vh - 320px);
    align-items: center;
    flex-direction: column;
    justify-content:center;
}

.person-card-item {
    flex: 1;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0px 10px 0px;
    border-radius: 5px;
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}

.person-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    border-radius: 5px;
}

.person-card-img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background-color: aliceblue;
    margin: 10px;
    position: relative;
}

.person-card-name {
    font-size: 20px;
    color: #171616;
}

.person-card-info {
    width: 100%;
}

.person-card-info-item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 5px 10px 5px 10px;
    color: black;
    font-size: 16px;
}

.person-card-warning {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: darkred;
}

.page-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    flex-direction: column;
    backdrop-filter: blur(25px);
    position: relative;
    z-index: 100;
}

.page-card-content {
    z-index: 100;
    display: flex;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding: 20px;
    border-radius: 5px;
    height: 300px;
    flex-direction: column;
}

.page-card-content button {
    width: 200px;
}

.api-key-wrapper {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin-top: 20px;
}

.api-key-label {
    font-size: 14px;
    color: #4caf50;
    margin-bottom: 8px;
    display: inline-block;
}

.api-key-label a {
    text-decoration: none;
    font-size: 14px;
    margin-left: 4px;
    color: #4caf50;
}

.api-key-box {
    display: flex;
    align-items: center;
    border: 1px solid #412204;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

#apiKey {
    font-family: monospace;
    border: none;
    padding: 10px;
    flex: 1;
    font-size: 14px;
    background: none;
    color: #333;
    outline: none;
}

#copyButton {
    background-color: #412204;
    color: white;
    border: none;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    height: 100%;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

#copyButton:hover {
    background-color: #825020;
}

.copy-status {
    margin-top: 6px;
    font-size: 13px;
    color: #412204;
}