*{
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
body{
    background-color: rgb(35,70,138);
    
}
nav{
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(35,70,138);
    padding: 10px 20px;
    color:white;
}

.nava{
    color:white;
    text-decoration: none;
    font-weight: bold;

    font-size: 15px;
    padding-top: 5px;
    border-bottom:2px solid transparent;
}
.nava:hover{
    color: rgb(255, 255, 255);
    border-bottom: 2px solid white;
}
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
img{
    height:100px;
}
.nav-right{
    display: flex;
    gap: 20px;
    
}
.nav-left a {
    display: inline-flex;
    align-items: center;
}
h1{
    color:white;
    text-align: center;
    margin-top: 20px;
}
h5{
    color:white;
    text-align: center;
    margin-top: 20px;
}
.Submit{
    display: flex;
    justify-content: center;
    align-items: center;
    
    
}
.submitbutton{
    color: rgb(255, 255, 255);
    background-color: rgb(35,70,138);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    margin-bottom: 10px;
}
.submitbutton:hover{
    background-color: rgb(26, 53, 105);
}
label{
    font-size: 16px;
    font-weight: bold;
   
}
.addcontainer{
    background-color: rgb(35,70,138);
    border: none;
    padding:2px;
    border-radius: 5px;
    font-size: 16px;
    color:white;
    margin-bottom: 20px;
}.addcontainer:hover{
    background-color: rgb(26, 53, 105);
}
.subject, .semester {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    background-color: #f8fbff;
}
.attendance,.cgpa,.sgpa{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: white;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    border-radius: 25px;
    margin-left: auto;
    margin-right: auto;
}

.integerinput{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;

}
input{
    width: 100%;
    max-width: 500px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
}
.row-title,
.field-group {
    display: flex;
    flex-direction: column;
}

.row-title {
    margin-bottom: 12px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.row-title input,
.field-group input {
    margin-top: 6px;
}
.result-attendance {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.detail-result-button {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 8px auto 0;
    padding: 11px 16px;
    border: none;
    border-radius: 22px;
    background-color: rgb(35,70,138);
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.detail-result-button:hover {
    background-color: rgb(26, 53, 105);
}

.detail-result-button[hidden],
.detail-result-card[hidden] {
    display: none;
}

.detail-result-card {
    width: 100%;
    max-width: 350px;
    margin: 14px auto 0;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(13, 31, 66, 0.14);
    text-align: center;
}

.detail-sgpa {
    font-size: 28px;
    font-weight: 800;
    color: rgb(35,70,138);
    margin-bottom: 14px;
}

.detail-result-head,
.detail-subject-row,
.detail-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px 72px;
    gap: 8px;
    align-items: center;
}

.detail-result-head {
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e8f2;
    color: #5d6b82;
    font-size: 12px;
    font-weight: bold;
}

.detail-subject-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.detail-subject-row {
    color: #263349;
    font-size: 14px;
}

.detail-subject-name {
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-total {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e3e8f2;
    color: #263349;
    font-size: 14px;
    font-weight: bold;
}

.detail-total span {
    grid-column: 1 / 3;
    text-align: left;
}

.detail-note {
    margin-top: 14px;
    color: #5d6b82;
    font-size: 12px;
}

.detail-brand {
    margin-top: 8px;
    color: rgba(38, 51, 73, 0.32);
    font-size: 11px;
}

body.result-report-mode,
body.sgpa-report-mode {
    background: #eef3fb;
    justify-content: center;
}

body.result-report-mode header,
body.result-report-mode .Heading,
body.result-report-mode .sub-heading,
body.result-report-mode #subjectContainer,
body.result-report-mode #semesterContainer,
body.result-report-mode #addSubject,
body.result-report-mode #addSemester,
body.result-report-mode .Submit,
body.result-report-mode .result-attendance,
body.sgpa-report-mode header,
body.sgpa-report-mode .Heading,
body.sgpa-report-mode .sub-heading,
body.sgpa-report-mode #subjectContainer,
body.sgpa-report-mode #addSubject,
body.sgpa-report-mode .Submit,
body.sgpa-report-mode .result-attendance {
    display: none;
}

body.result-report-mode .sgpa,
body.result-report-mode .cgpa,
body.sgpa-report-mode .sgpa {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 18px;
    border-radius: 0;
    background: transparent;
}

body.result-report-mode .sgpa-form,
body.result-report-mode .cgpa-form,
body.sgpa-report-mode .sgpa-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.result-report-mode .detail-result-card,
body.sgpa-report-mode .detail-result-card {
    max-width: 390px;
    margin-top: 0;
    padding: 18px;
}

body.result-report-mode .detail-result-button,
body.sgpa-report-mode .detail-result-button {
    order: 2;
    max-width: 390px;
    margin-top: 14px;
    background: rgba(35,70,138,0.08);
    color: rgba(35,70,138,0.72);
}
#mode1:hover{
    background-color: rgb(26, 53, 105);
}
.form-desc{
    margin-top: 10px;
    margin-bottom: 20px;
}
#resultDisplay,#cgpaResult{
    white-space: pre-line;
}

body {
    background-color: rgb(35,70,138);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#setupForm {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {

    header {
        position: relative;
        z-index: 50;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    .nav-right {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: rgb(35,70,138);
        padding: 8px 20px 16px;
        gap: 0;
        box-shadow: 0 18px 32px rgba(5, 16, 40, 0.24);
        z-index: 60;
    }

    .nav-right .nava {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .nav-right.active {
        display: flex;
    }

    img {
        height: 60px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HOME PAGE ===== */

.home-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    color: white;
    padding: 32px;
    border-radius: 36px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(92, 167, 255, 0.26), transparent 26%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #07162f 0%, #0f2e63 52%, #18469a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(5, 16, 40, 0.34);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.home-hero-copy,
.home-hero-panel {
    position: relative;
    z-index: 1;
}

.home-hero-copy {
    padding: 26px 12px 26px 8px;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
}

.home-hero h1 {
    font-size: clamp(3.4rem, 9vw, 6.4rem);
    line-height: 0.95;
    margin: 0;
    text-align: left;
    letter-spacing: -0.05em;
}

.home-hero h2 {
    font-size: clamp(1.3rem, 2.8vw, 2.2rem);
    font-weight: 600;
    line-height: 1.15;
    max-width: 560px;
    margin: 18px 0 0;
    text-align: left;
}

.home-tagline {
    font-size: 1.08rem;
    max-width: 540px;
    margin: 20px 0 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
}

.home-inline-note {
    margin-top: 18px;
    color: #d6e8ff;
    font-weight: 600;
    text-align: left;
}

.home-actions {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 15px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button.primary {
    background: #ffffff;
    color: #12346f;
    box-shadow: 0 16px 34px rgba(3, 10, 24, 0.24);
}

.home-button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.home-note {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

.home-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-panel-card,
.hero-mini-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.hero-panel-brand {
    border-radius: 26px;
    padding: 24px;
}

.hero-panel-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cfe2ff;
    margin-bottom: 12px;
}

.hero-panel-brand h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.35;
    color: white;
}

.hero-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-mini-card {
    min-height: 132px;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-mini-title {
    color: white;
    font-weight: 700;
    line-height: 1.35;
}

.hero-mini-text {
    color: rgba(227, 239, 255, 0.82);
    font-size: 0.94rem;
    line-height: 1.5;
}

.home-section {
    margin-top: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
    border-radius: 30px;
    padding: 34px;
    border: 1px solid rgba(205, 220, 244, 0.9);
    box-shadow: 0 22px 54px rgba(10, 22, 49, 0.12);
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4b72b8;
    margin-bottom: 10px;
}

.home-section-head h3 {
    color: #0f234d;
    text-align: left;
    margin: 0 0 22px;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.soon-item {
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #dde7f7;
    box-shadow: 0 10px 24px rgba(15, 35, 77, 0.06);
}

.feature-card {
    position: relative;
}

.feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eff4ff;
    color: #234e9e;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.feature-card h4 {
    margin: 0 0 10px;
    color: #122b5c;
    font-size: 1.2rem;
    line-height: 1.35;
}

.feature-card p,
.soon-item {
    color: #3b4964;
    line-height: 1.6;
}

.soon-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.soon-item {
    font-weight: 600;
}

.home-footer {
    text-align: center;
    color: white;
    padding: 12px 16px 34px;
}

.home-footer p + p {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .home-page {
        width: min(100% - 24px, 1180px);
        padding-top: 18px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
        border-radius: 24px;
    }

    .home-hero-copy {
        padding: 8px 0 0;
    }

    .home-hero h1,
    .home-hero h2,
    .home-tagline,
    .home-inline-note,
    .home-note {
        text-align: left;
    }

    .hero-panel-grid {
        grid-template-columns: 1fr;
    }

    .home-section {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .feature-grid,
    .soon-list {
        grid-template-columns: 1fr;
    }

    .home-button {
        width: 100%;
    }
}



/* ===== LOST & FOUND (SAFE SCOPED) ===== */

.lf-container {
    padding: 20px;
}

.lf-title {
    text-align: center;
    margin-bottom: 20px;
}

.lf-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.lf-btn {
    padding: 8px 15px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.lf-btn.active {
    background: black;
    color: white;
}

.lf-category,
.lf-search {
    padding: 8px;
}

.lf-post {
    text-align: center;
    margin-bottom: 20px;
}

.lf-post-btn {
    padding: 10px 20px;
    background: black;
    color: white;
    border: none;
}

/* Grid */
.lf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.lf-card {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.lf-card img {
    width: 100%;
    border-radius: 10px;
}

.lf-status {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
}

.lf-status.lost {
    background: red;
    color: white;
}

.lf-status.found {
    background: green;
    color: white;
}

/* Modal */
.lf-modal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

.lf-modal-content {
    background: white;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lf-submit {
    background: black;
    color: white;
    padding: 10px;
    border: none;
}

.lf-close {
    background: gray;
    color: white;
    padding: 10px;
    border: none;
}
