/* ======================================================
   PNU KMSFO DATA COLLECTION MATRIX
   STYLE.CSS
====================================================== */

/* ==============================
   ROOT VARIABLES
============================== */

:root{

    --pnu-blue:#123C73;
    --pnu-yellow:#F4C430;
    --light:#F8FAFC;
    --white:#FFFFFF;
    --gray:#6B7280;
    --border:#E5E7EB;
    --success:#16A34A;
    --warning:#F59E0B;
    --danger:#DC2626;

    --shadow:0 4px 12px rgba(0,0,0,.08);

}


/* ==============================
   RESET
============================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'DM Sans',sans-serif;
    background:#f5f7fb;
    color:#222;
    line-height:1.6;

}


/* ==============================
   CONTAINER
============================== */

.container{

    width:95%;
    max-width:1400px;
    margin:auto;

}


/* ==============================
   LINKS
============================== */

a{

    text-decoration:none;
    color:inherit;

}


/* ==============================
   BUTTONS
============================== */

button{

    cursor:pointer;
    border:none;
    font-family:inherit;

}


/* ==============================
   INPUTS
============================== */

input,
select,
textarea{

    width:100%;
    padding:12px;
    border:1px solid var(--border);
    border-radius:8px;
    font-size:15px;
    outline:none;

}

input:focus,
select:focus,
textarea:focus{

    border-color:var(--pnu-blue);

}


/* ==============================
   TABLE
============================== */

table{

    width:100%;
    border-collapse:collapse;

}

th{

    background:var(--pnu-blue);
    color:white;
    padding:12px;
    text-align:left;

}

td{

    padding:10px;
    border-bottom:1px solid var(--border);

}

tr:nth-child(even){

    background:#fafafa;

}/* ======================================================
   HEADER / HERO
====================================================== */

header{

    position:relative;
    overflow:hidden;

}

.hero{

    background-image:
        linear-gradient(rgba(18,60,115,.88),
        rgba(18,60,115,.88)),
        url("../assets/pnu-header.jpg");

    background-size:cover;
    background-position:center;

    color:white;

}

.hero-overlay{

    padding:70px 20px;

}

.hero-title{

    font-family:'Playfair Display',serif;
    font-size:42px;
    font-weight:700;
    margin-bottom:15px;

}

.hero-subtitle{

    font-size:22px;
    color:#FFD54F;
    font-weight:600;
    margin-bottom:15px;

}

.hero-description{

    max-width:900px;
    margin:auto;
    font-size:17px;
    line-height:1.8;
    opacity:.95;

}


/* ======================================================
   NAVIGATION
====================================================== */

nav{

    position:sticky;
    top:0;
    z-index:999;

    background:white;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

nav div{

    display:flex;
    overflow-x:auto;

}


/* ======================================================
   TAB BUTTONS
====================================================== */

.tab-btn{

    background:white;

    color:#555;

    padding:16px 24px;

    font-size:15px;
    font-weight:600;

    border-bottom:3px solid transparent;

    transition:.25s;

    white-space:nowrap;

}

.tab-btn:hover{

    background:#f5f7fb;

    color:var(--pnu-blue);

}

.tab-active{

    color:var(--pnu-blue);

    border-bottom:4px solid var(--pnu-yellow);

    background:#f8fbff;

}


/* ======================================================
   TAB PANELS
====================================================== */

.tab-panel{

    display:block;

    animation:fadeIn .3s ease;

}

.hidden{

    display:none !important;

}

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(12px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}


/* ======================================================
   MAIN CONTENT
====================================================== */

main{

    padding:40px 0;

}


/* ======================================================
   SECTION TITLES
====================================================== */

.section-title{

    font-size:32px;

    color:var(--pnu-blue);

    font-weight:700;

    margin-bottom:25px;

    font-family:'Playfair Display',serif;

}

.section-subtitle{

    color:var(--gray);

    margin-top:-10px;

    margin-bottom:30px;

    font-size:15px;

}


/* ======================================================
   CARDS
====================================================== */

.card{

    background:white;

    border-radius:12px;

    padding:24px;

    box-shadow:var(--shadow);

}

.card-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:20px;

}/* ======================================================
   DASHBOARD
====================================================== */

.stats-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:20px;

    margin-bottom:35px;

}

.stat-card{

    background:white;

    border-radius:12px;

    padding:24px;

    box-shadow:var(--shadow);

    border-left:6px solid var(--pnu-blue);

    transition:.25s;

}

.stat-card:hover{

    transform:translateY(-4px);

}

.stat-card h4{

    font-size:13px;

    color:var(--gray);

    text-transform:uppercase;

    letter-spacing:.08em;

    margin-bottom:10px;

}

.stat-card h2{

    font-size:38px;

    color:var(--pnu-blue);

    font-weight:700;

}

.stat-card.blue{

    border-left-color:var(--pnu-blue);

}

.stat-card.green{

    border-left-color:var(--success);

}

.stat-card.orange{

    border-left-color:var(--warning);

}

.stat-card.red{

    border-left-color:var(--danger);

}



/* ======================================================
   PROGRESS BARS
====================================================== */

.progress-item{

    margin-bottom:20px;

}

.progress-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

}

.progress-track{

    width:100%;

    height:14px;

    background:#E5E7EB;

    border-radius:20px;

    overflow:hidden;

}

.progress-fill{

    height:100%;

    width:0;

    background:var(--pnu-blue);

    transition:width .4s ease;

}



/* ======================================================
   DATA MATRIX
====================================================== */

.accordion{

    margin-bottom:18px;

}

.accordion-header{

    background:var(--pnu-blue);

    color:white;

    padding:18px 22px;

    cursor:pointer;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-radius:10px;

    font-weight:700;

    transition:.25s;

}

.accordion-header:hover{

    background:#0D2D56;

}

.accordion-content {

    overflow-x: auto;

}

.accordion-content.hidden{

    display:none;

}



/* ======================================================
   MATRIX TABLE
====================================================== */

.matrix-table{

    width:100%;

    border-collapse:collapse;

    min-width:900px;

}

.matrix-table th{

    background:var(--pnu-blue);

    color:white;

    padding:12px;

    text-align:center;

    font-size:13px;

}

.matrix-table td{

    padding:10px;

    border:1px solid #E5E7EB;

    text-align:center;

    font-size:13px;

}

.matrix-table td:first-child,

.matrix-table td:nth-child(2){

    text-align:left;

}

.required{

    width:14px;

    height:14px;

    border-radius:50%;

    background:#16A34A;

    display:inline-block;

}

.not-required{

    color:#CFCFCF;

}



/* ======================================================
   DIRECTORY
====================================================== */

.search-box{

    margin-bottom:20px;

}

.search-box input{

    max-width:420px;

    background:white;

}

.table-wrapper{

    overflow-x:auto;

    background:white;

    border-radius:12px;

    box-shadow:var(--shadow);

}

.table-wrapper table{

    min-width:900px;

}

.table-wrapper tbody tr:hover{

    background:#F8FAFC;

}



/* ======================================================
   BADGES
====================================================== */

.badge{

    display:inline-block;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

}

.badge.green{

    background:#DCFCE7;

    color:#166534;

}

.badge.orange{

    background:#FEF3C7;

    color:#92400E;

}

.badge.red{

    background:#FEE2E2;

    color:#991B1B;

}/* ======================================================
   REQUIREMENTS
====================================================== */

.requirement-card{

    background:white;

    border:1px solid var(--border);

    border-radius:12px;

    margin-bottom:18px;

    overflow:hidden;

    box-shadow:var(--shadow);

}

.requirement-header{

    padding:18px 22px;

    cursor:pointer;

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#ffffff;

    transition:.25s;

}

.requirement-header:hover{

    background:#F8FAFC;

}

.requirement-header h3{

    color:var(--pnu-blue);

    font-size:18px;

    font-weight:700;

}

.requirement-content{

    display:none;

    padding:20px;

    border-top:1px solid var(--border);

    background:#FCFCFC;

}

.requirement-content.open{

    display:block;

}

.requirement-block{

    margin-bottom:18px;

}

.requirement-block h4{

    color:var(--pnu-blue);

    font-size:14px;

    text-transform:uppercase;

    margin-bottom:6px;

    letter-spacing:.05em;

}

.requirement-block p{

    color:#555;

    line-height:1.7;

}



/* ======================================================
   SUBMISSION FORM
====================================================== */

.tracker-form{

    background:white;

    padding:25px;

    border-radius:12px;

    box-shadow:var(--shadow);

    margin-bottom:30px;

}

#submission-form{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

}

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    font-weight:600;

    margin-bottom:8px;

    color:var(--pnu-blue);

}

.form-group input,

.form-group select{

    background:white;

}



/* ======================================================
   BUTTONS
====================================================== */

button,

.btn{

    background:var(--pnu-blue);

    color:white;

    padding:12px 22px;

    border:none;

    border-radius:8px;

    font-weight:600;

    transition:.25s;

}

button:hover,

.btn:hover{

    opacity:.9;

    transform:translateY(-2px);

}

.btn-success{

    background:var(--success);

}

.btn-warning{

    background:var(--warning);

}

.btn-danger{

    background:var(--danger);

}



/* ======================================================
   TRACKER TABLE
====================================================== */

.tracker-table{

    width:100%;

    background:white;

    border-radius:12px;

    overflow:hidden;

    box-shadow:var(--shadow);

}

.tracker-table th{

    background:var(--pnu-blue);

    color:white;

}

.tracker-table td{

    vertical-align:middle;

}

#tracker-empty{

    text-align:center;

    padding:40px;

    color:#888;

    font-style:italic;

}



/* ======================================================
   TOAST
====================================================== */

.toast{

    position:fixed;

    bottom:25px;

    right:25px;

    background:var(--success);

    color:white;

    padding:14px 22px;

    border-radius:8px;

    box-shadow:var(--shadow);

    animation:fadeIn .3s ease;

    z-index:9999;

}

.toast.error{

    background:var(--danger);

}



/* ======================================================
   FOOTER
====================================================== */

footer{

    margin-top:60px;

    background:var(--pnu-blue);

    color:white;

    text-align:center;

    padding:30px 20px;

}

footer p{

    line-height:1.8;

    opacity:.95;

}



/* ======================================================
   RESPONSIVE DESIGN
====================================================== */

@media (max-width:992px){

    .hero-title{

        font-size:34px;

    }

    .hero-subtitle{

        font-size:20px;

    }

    .section-title{

        font-size:28px;

    }

}



@media (max-width:768px){

    nav div{

        flex-wrap:nowrap;

        overflow-x:auto;

    }

    .tab-btn{

        flex:0 0 auto;

        padding:14px 18px;

        font-size:14px;

    }

    .stats-grid{

        grid-template-columns:1fr;

    }

    #submission-form{

        grid-template-columns:1fr;

    }

    .hero-title{

        font-size:28px;

    }

    .hero-description{

        font-size:15px;

    }

}



@media (max-width:480px){

    body{

        font-size:14px;

    }

    .hero-overlay{

        padding:50px 20px;

    }

    .hero-title{

        font-size:24px;

    }

    .section-title{

        font-size:24px;

    }

    .card{

        padding:18px;

    }

}