@font-face {
    font-family: 'ps3font';
    src: url('../fonts/HOMOARAK.TTF')  format('truetype'); /* Safari, Android, iOS */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --page-bg: #eef3f8;
    --page-bg-2: #f8fafc;
    --surface-bg: rgba(255, 255, 255, 0.84);
    --surface-elevated: #ffffff;
    --text-color: #142033;
    --muted-text: #64748b;
    --header-bg: rgba(255, 255, 255, 0.82);
    --header-border: rgba(15, 23, 42, 0.08);
    --brand-bg: #0f766e;
    --brand-bg-2: #2563eb;
    --accent: #14b8a6;
    --accent-strong: #0f766e;
    --accent-soft: rgba(20, 184, 166, 0.13);
    --warning-accent: #f59e0b;
    --danger-accent: #dc2626;
    --success-accent: #16a34a;
    --menu-bg: rgba(15, 118, 110, 0.09);
    --menu-border: rgba(15, 118, 110, 0.18);
    --label-bg: rgba(15, 118, 110, 0.09);
    --label-text: #0f766e;
    --heading-label-bg: transparent;
    --heading-label-text: #142033;
    --border-color: rgba(100, 116, 139, 0.22);
    --table-header-bg: #0f766e;
    --table-header-text: #ecfeff;
    --table-row-bg: #ffffff;
    --table-alt-row-bg: #f1f5f9;
    --input-bg: #ffffff;
    --input-text: #142033;
    --input-border: rgba(100, 116, 139, 0.28);
    --link-color: #0f766e;
    --footer-text: #64748b;
    --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.11);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --page-bg: #07111f;
    --page-bg-2: #0f172a;
    --surface-bg: rgba(15, 23, 42, 0.82);
    --surface-elevated: #111c2f;
    --text-color: #e5eefb;
    --muted-text: #9fb0c7;
    --header-bg: rgba(15, 23, 42, 0.78);
    --header-border: rgba(148, 163, 184, 0.16);
    --brand-bg: #14b8a6;
    --brand-bg-2: #38bdf8;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: rgba(45, 212, 191, 0.13);
    --menu-bg: rgba(45, 212, 191, 0.11);
    --menu-border: rgba(45, 212, 191, 0.22);
    --label-bg: rgba(45, 212, 191, 0.12);
    --label-text: #9af7e8;
    --heading-label-bg: transparent;
    --heading-label-text: #f8fafc;
    --border-color: rgba(148, 163, 184, 0.22);
    --table-header-bg: #0f766e;
    --table-header-text: #f8fafc;
    --table-row-bg: #111c2f;
    --table-alt-row-bg: #17243a;
    --input-bg: rgba(2, 6, 23, 0.5);
    --input-text: #f8fafc;
    --input-border: rgba(148, 163, 184, 0.3);
    --link-color: #5eead4;
    --footer-text: #9fb0c7;
    --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 22px 55px rgba(0, 0, 0, 0.34);
    color-scheme: dark;
}

.bkg-page-body{
    /*background-image: url("../img/htmlbkg.jpeg"); 
    background-size: 100%;*/
    background-color: var(--page-bg);
    background-image:
        radial-gradient(circle at 8% 8%, rgba(20, 184, 166, 0.12), transparent 26%),
        radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(135deg, var(--page-bg), var(--page-bg-2));
    background-attachment: fixed;
    color: var(--text-color);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    transition: background-color 160ms ease, color 160ms ease;
}

.app-shell {
    min-height: 100vh;
    padding: 18px;
}

label{
    color:var(--label-text);
    display: inline-flex;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    background-color: var(--label-bg);
    padding:6px 10px;
    border-radius: 999px;
    margin-bottom: 7px;
}

.sec{
    display:none;
}

.app-header{
    align-items: center;
    border: 1px solid var(--header-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 1.05fr) minmax(320px, 2fr) minmax(230px, auto);
    margin-bottom: 18px;
    min-height: 118px;
    padding: 16px 18px;
    position: sticky;
    top: 14px;
    z-index: 20;
    background-color: var(--header-bg);
    opacity:1;
    backdrop-filter: blur(18px);
}

.app-brand {
    align-items: center;
    color: var(--text-color);
    display: flex;
    gap: 13px;
    min-width: 0;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--brand-bg), var(--brand-bg-2));
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.25);
    display: flex;
    height: 68px;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    width: 68px;
}

.brand-kicker {
    color: var(--muted-text);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-name {
    color: var(--text-color);
    display: block;
    font-size: 1.15rem;
    line-height: 1.15;
}

.app-title-block {
    min-width: 0;
    text-align: center;
}

.header-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: end;
}

.system-menu-title{
    font-weight: bold;
    color:var(--heading-label-text);
    font-family: inherit;
}

.menu-list-item{
    align-items: center;
    background-color: var(--menu-bg);
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text-color);
    display: flex;
    font-weight: 750;
    gap: 10px;
    line-height: 1.2;
    margin: 7px 0;
    min-height: 40px;
    padding: 10px 12px;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

[data-goto-page],
[data-href],
[data-goto-home],
.menu-list-item {
    cursor: pointer;
}

.menu-list-item:hover,
.menu-list-item.active-menu-item{
    background-color: var(--surface-elevated);
    border-color: var(--menu-border);
    box-shadow: var(--shadow-sm);
    color: var(--accent-strong);
    transform: translateX(3px);
}

.menu-list-item i {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 10px;
    color: var(--accent-strong);
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
}
.fees_input{
    font-size:15pt;font-weight:bold;
}

.fees_input_small{
    font-weight:bold;
}

.footer-style{
    background-color: transparent;
    color: var(--footer-text);
    margin-top: 18px;
    padding: 16px 8px 6px;
}

.table-header{
    background-color: var(--table-header-bg); color:var(--table-header-text); font-weight:800;
}
.tiny-table-header{
    background-color: var(--table-header-bg); color:var(--table-header-text); font-weight:bold; font-size: 6pt;
}

.menu-list{
    list-style-type: none;
    margin: 0;
    padding: 0;
}



.logo{
    height: 100%;
    margin-left:0;
    object-fit: contain;
    width: 100%;
}
.school-title{
    color:var(--text-color);
    font-family: inherit;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 850;
    line-height: 1.15;
    margin: 0;
    text-align: center;
    opacity: 1!important;;
}
.app_name{
    color:var(--muted-text);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 6px 0 0;
    text-align: center;
    text-transform: uppercase;
    opacity: 1!important;
}
.white-label{
    color:var(--text-color);
    font-weight: 800;
}

.user-cred-box{
    align-items: center;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 9px;
    padding: 7px;
    margin-top:0;
}

.user-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--brand-bg), var(--brand-bg-2));
    border-radius: 999px;
    color: white;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.role-pill {
    color: var(--muted-text);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.btn-logout {
    align-items: center;
    border-radius: 999px !important;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0 !important;
    width: 34px;
}

.app-layout {
    margin-left: 0;
    margin-right: 0;
}

.app-sidebar-col {
    padding-left: 0;
}

.app-content {
    padding: 4px 10px 20px 18px;
}

.sidebar-decor{
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-height: calc(100vh - 180px);
    position: sticky;
    top: 154px;
    background-color: var(--surface-bg);
    backdrop-filter: blur(16px);
}

.sidebar-heading {
    align-items: center;
    color: var(--muted-text);
    display: flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.suite-switcher {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.suite-switcher-title {
    align-items: center;
    color: var(--muted-text);
    display: flex;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0.12em;
    margin: 2px 0 8px;
    text-transform: uppercase;
}

.suite-menu-list .menu-list-item {
    background: linear-gradient(135deg, var(--accent-soft), transparent);
}

.suite-menu-list .menu-list-item.active-suite-item,
.suite-menu-list .menu-list-item.btn-primary.active-suite-item,
.suite-menu-list .menu-list-item.active-suite-item:hover {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: rgba(245, 158, 11, 0.85);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
    color: #111827;
}

.suite-menu-list .menu-list-item.active-suite-item i {
    background: rgba(255, 255, 255, 0.34);
    color: #111827;
}

body > header:not(.app-header) {
    background-color: var(--header-bg);
    border: 1px solid var(--header-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 18px;
    padding: 16px 18px !important;
    backdrop-filter: blur(18px);
}

body > header:not(.app-header) .app-brand {
    flex: 0 0 auto;
    width: 220px;
}

body > header:not(.app-header) .school-title {
    color: var(--text-color);
}

body > header:not(.app-header) .app_name {
    color: var(--muted-text);
}

body > header:not(.app-header) .user-cred-box {
    background-color: var(--surface-elevated);
}

.grey-body{
    background-color: var(--page-bg);
}

.button-width{
    min-height: 44px;
    width:200px;
    font-weight: 800;
}

.curved-box {
    border: thin solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    border-radius: var(--radius-md);
    margin:8px;
    background-color: var(--surface-bg);
    backdrop-filter: blur(14px);
}
.bold-header{
    font-weight: bold;
}

.student-pic{
    width: 100px;
    height:100px;
    border-radius: 8px;
}
.conduct-pic{
    width: 200px;
    height:200px;
    border-radius: 8px;
}

.normal-tr{
    background-color: var(--table-row-bg);
}

.grey-tr{
    background-color: var(--table-alt-row-bg);
}

#passforogt{width: 30%; display: inline-block; margin-left: 125.5px; font-style: italic; text-decoration: none;}
.textAreas{width: 236px; height: 40px; border-radius: 5px; border: solid thin black; margin-top: -65px;padding-left: 10px;}
#LogInArea{padding: 10px 90px 10px 98px; border-radius: 12px; border: none; background-color:var(--accent-strong); color: white; font-size: 14pt;}
#forGotPass{text-decoration: none; color:var(--text-color)}
#Log{font-size: 28pt; color: blueviolet;}
#Labeluser{margin-bottom: 10px;}

#label1{font-size: clamp(1.45rem, 2.4vw, 2.15rem); font-weight: 900; color: var(--heading-label-text); padding-left:0; padding-right:0; padding-top: 6px; padding-bottom: 6px; border-radius: 8px;background-color: var(--heading-label-bg);}
.selectareas{width: 236px; height: 40px; border-radius: 5px; border: solid thin black; margin-top: -65px;padding-left: 10px;}
.footers{width: 250px; height: 38px;}
#selectarea4{width: 150px; background-color: navy; color: white; font-size: 14pt; height: 40px; border-radius: 5px; border: solid thin black; margin-top: -65px;padding-left: 10px;}
#block1{width: 40%;  display: inline-block;}
#block2{width: 30%;  display: inline-block;}
#block3{width: 30%;  display: inline-block;}
#selectarea4{width: 150px; background-color: navy; color: white; font-size: 14pt; height: 40px; border-radius: 5px; border: solid thin black; margin-top: -65px;padding-left: 10px;}

.theme-toggle {
    align-items: center;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    color: var(--text-color);
    display: inline-flex;
    font-weight: bold;
    gap: 7px;
    line-height: 1;
    margin-bottom: 10px;
    min-height: 40px;
    padding: 9px 13px;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background: var(--accent-soft);
    color: var(--accent-strong);
    outline: none;
}

.theme-toggle i {
    font-size: 15px;
}

a {
    color: var(--link-color);
}

.table {
    color: var(--text-color);
    background-color: var(--surface-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border-color: var(--border-color);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: var(--text-color);
    background-color: var(--surface-bg);
}

.table-hover > tbody > tr:hover > * {
    color: var(--text-color);
    background-color: var(--label-bg);
}

.form-control,
.form-select,
input,
select,
textarea {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    border-radius: 12px;
    color: var(--input-text);
    min-height: 42px;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    background-color: var(--input-bg);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem var(--accent-soft);
    color: var(--input-text);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--muted-text);
    opacity: 1;
}

hr {
    border-color: var(--border-color);
    opacity: 1;
}

.footer-style span {
    color: var(--footer-text) !important;
}

:root[data-theme="dark"] .btn-outline-secondary {
    color: #d1d5db;
    border-color: #94a3b8;
}

:root[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #94a3b8;
    color: #0f172a;
}

:root[data-theme="dark"] [style*="background-color:white"],
:root[data-theme="dark"] [style*="background-color: white"] {
    background-color: var(--surface-bg) !important;
}

.btn {
    border-radius: 12px;
    font-weight: 800;
    min-height: 39px;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--brand-bg), var(--brand-bg-2));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover,
.btn-success:hover {
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-color: transparent;
    color: #111827;
}

.btn-secondary,
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning {
    background-color: var(--surface-elevated);
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover {
    background-color: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
}

.alert-modern,
h4[style*="color: red"],
p[style*="color:red"],
span[style*="color:red"] {
    border-radius: 12px;
}

.menu-list-item.btn-primary {
    background-color: var(--menu-bg);
    background-image: none;
    border-color: transparent;
    box-shadow: none;
}

.menu-list-item.btn-primary:hover,
.menu-list-item.btn-primary.active-menu-item {
    background-color: var(--surface-elevated);
    border-color: var(--menu-border);
    box-shadow: var(--shadow-sm);
    color: var(--accent-strong);
}

.login-screen {
    padding-top: 24px;
}

.login-layout {
    min-height: 52vh;
}

.login-panel {
    position: relative;
}

.login-panel::before {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.18)),
        repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, 0.15) 12px 13px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    content: "";
    inset: -22px -28px auto auto;
    height: 130px;
    position: absolute;
    width: 190px;
    z-index: -1;
}

.login-badge {
    align-items: center;
    background: var(--accent-soft);
    border: 1px solid var(--menu-border);
    border-radius: 999px;
    color: var(--accent-strong);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.login-card {
    padding: 22px;
}

.login-button {
    justify-content: center;
    width: 100%;
}

.calendar .header .month-year {
    color: var(--text-color);
}

.calendar .days .day_name {
    background-color: var(--table-header-bg);
    border-color: rgba(255, 255, 255, 0.18);
}

.calendar .days .day_num {
    background-color: var(--surface-elevated);
    border-color: var(--border-color);
    color: var(--text-color);
}

.calendar .days .day_num:hover,
.calendar .days .day_num.ignore,
.calendar .days .day_num.selected {
    background-color: var(--surface-bg);
}

/*
Calendar styles start*/
.calendar {
    display: flex;
    flex-flow: column;
}
.calendar .header .month-year {
    font-size: 20px;
    font-weight: bold;
    color: #636e73;
    padding: 20px 0;
}
.calendar .days {
    display: flex;
    flex-flow: wrap;
}
.calendar .days .day_name {
    width: calc(100% / 7);
    border-right: 1px solid #2c7aca;
    padding: 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: #818589;
    color: #fff;
    background-color: #448cd6;
}
.calendar .days .day_name:nth-child(7) {
    border: none;
}
.calendar .days .day_num {
    display: flex;
    flex-flow: column;
    width: calc(100% / 7);
    border-right: 1px solid #e6e9ea;
    border-bottom: 1px solid #e6e9ea;
    padding: 15px;
    font-weight: bold;
    color: #7c878d;
    cursor: pointer;
    min-height: 100px;
}
.calendar .days .day_num span {
    display: inline-flex;
    width: 30px;
    font-size: 14px;
}
.calendar .days .day_num .event {
    margin-top: 10px;
    font-weight: 500;
    font-size: 14px;
    padding: 3px 6px;
    border-radius: 4px;
    background-color: #f7c30d;
    color: #fff;
    word-wrap: break-word;
}
.calendar .days .day_num .event.green {
    background-color: #51ce57;
}
.calendar .days .day_num .event.blue {
    background-color: #518fce;
}
.calendar .days .day_num .event.red {
    background-color: #ce5151;
}
.calendar .days .day_num:nth-child(7n+1) {
    border-left: 1px solid #e6e9ea;
}
.calendar .days .day_num:hover {
    background-color: #fdfdfd;
}
.calendar .days .day_num.ignore {
    background-color: #fdfdfd;
    color: #ced2d4;
    cursor: inherit;
}
.calendar .days .day_num.selected {
    background-color: #f1f2f3;
    cursor: inherit;
}
/* Calendar styles end */

.text-error {
    color: #dc2626;
}

.text-success {
    color: #16a34a;
}

.text-warning-soft {
    color: #74b3d1;
}

.text-centered {
    text-align: center;
}

.text-strong {
    font-weight: 700;
}

.text-italic {
    font-style: italic;
}

.text-small {
    font-size: 8pt;
}

.text-muted-small {
    font-size: 11pt;
    font-style: italic;
}

.section-offset {
    margin-top: 10px;
}

.section-offset-lg {
    margin-top: 50px;
}

.search-input-tall {
    height: 55px;
}

.search-button-square {
    height: 55px;
    width: 55px;
}

.inline-action {
    margin: 1px;
}

.inline-block {
    display: inline-block;
}

.is-hidden {
    display: none;
}

.panel-pad-left {
    padding-left: 30px;
}

.narrow-input {
    width: 90px;
}

.medium-input {
    width: 150px;
}

.report-response-box {
    border: thin solid currentColor;
    padding: 5px;
}

.loading-indicator {
    height: 150px;
    width: 150px;
}

.float-right {
    float: right;
}

.clickable-text {
    cursor: pointer;
}

.footer-muted {
    color: #95aac9;
}

@media screen and (max-width: 975px) {
    .app-shell {
        padding: 10px;
    }

    .app-header {
        grid-template-columns: 1fr;
        position: static;
        text-align: left;
    }

    .app-title-block,
    .school-title,
    .app_name {
        text-align: left;
    }

    .header-actions {
        align-items: flex-start;
        justify-self: stretch;
    }

    .app-sidebar-col,
    .app-content {
        width: 100%;
    }

    .sidebar-decor {
        min-height: auto;
        position: static;
    }

    .app-content {
        padding: 14px 0;
    }
}

@media screen and (min-width: 992px) and (max-width: 1116px) {

}

@media screen and (min-width: 775px) and (max-width: 950px) {

}

@media screen and (max-width: 500px) {
    .app-brand {
        align-items: flex-start;
    }

    .brand-mark {
        height: 54px;
        width: 54px;
    }

    .user-cred-box {
        border-radius: 16px;
        width: 100%;
    }

    .curved-box {
        margin-left: 0;
        margin-right: 0;
    }

    .button-width {
        width: 100%;
    }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ CSS */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        max-height: 100%;
        overflow-y: scroll;
    }
}

@supports (-ms-accelerator:true) {
    /* Edge 12+ CSS */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        max-height: 100%;
        overflow-y: scroll;
    }
}

@supports (-ms-ime-align:auto) {
    /* Edge 16+ CSS */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        max-height: 100%;
        overflow-y: scroll;
    }
}
