/* =========================
   GOOGLE FONT
========================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* =========================
   ROOT COLORS
========================= */

:root{

    --bg-color: #eef3f8;

    --card-bg: #ffffff;

    --primary-color: #5b7cfa;

    --primary-hover: #4c6df0;

    --input-bg: #f8fbff;

    --input-border: #d7e3f1;

    --text-dark: #1f2937;

    --text-light: #6b7280;

    --shadow:
        0 8px 24px rgba(0,0,0,0.08);

    --radius: 18px;
}


/* =========================
   GLOBAL
========================= */

*{

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}

body{

    font-family: 'Poppins', sans-serif;

    background: var(--bg-color);

    color: var(--text-dark);

    min-height: 100vh;

    display: flex;
}


/* =========================
   SIDEBAR
========================= */

.sidebar{

    width: 260px;

    background: white;

    min-height: 100vh;

    box-shadow:
        4px 0 18px rgba(0,0,0,0.05);

    padding: 25px 20px;

    position: fixed;

    left: 0;

    top: 0;

    z-index: 1000;

    transition: 0.3s;
}


/* =========================
   LOGO
========================= */

.logo{

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 40px;

    color: var(--primary-color);

    cursor: pointer;
}


/* =========================
   SIDEBAR MENU
========================= */

.sidebar-menu{

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.sidebar-menu button{

    border: none;

    background: transparent;

    color: var(--text-dark);

    text-align: left;

    padding: 14px 18px;

    border-radius: 14px;

    font-size: 15px;

    cursor: pointer;

    transition: 0.3s;
}

.sidebar-menu button:hover{

    background: #edf2ff;

    color: var(--primary-color);
}

.sidebar-menu button.active{

    background: var(--primary-color);

    color: white;
}


/* =========================
   MAIN CONTENT
========================= */

.main-content{

    flex: 1;

    margin-left: 260px;

    padding: 30px;

    width: calc(100% - 260px);
}


/* =========================
   PAGE HEADER
========================= */

.page-header{

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

    flex-wrap: wrap;

    gap: 15px;
}


/* =========================
   CARDS
========================= */

.card{

    background: var(--card-bg);

    border-radius: var(--radius);

    padding: 25px;

    box-shadow: var(--shadow);
}


/* =========================
   KPI GRID
========================= */

.kpi-grid{

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 25px;
}


/* =========================
   KPI CARD
========================= */

.kpi-card{

    background: white;

    border-radius: var(--radius);

    padding: 30px;

    box-shadow: var(--shadow);

    cursor: pointer;

    transition: 0.3s;
}

.kpi-card:hover{

    transform: translateY(-3px);
}

.kpi-card h3{

    font-size: 15px;

    color: var(--text-light);

    margin-bottom: 15px;
}

.kpi-value{

    font-size: 42px;

    font-weight: 700;

    color: var(--primary-color);
}


/* =========================
   BUTTONS
========================= */

button{

    border: none;

    background: var(--primary-color);

    color: white;

    padding: 12px 20px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

button:hover{

    background: var(--primary-hover);
}


/* =========================
   INPUTS
========================= */

input,
select,
textarea{

    width: 100%;

    padding: 14px;

    border-radius: 12px;

    border: 1px solid var(--input-border);

    background: var(--input-bg);

    outline: none;

    font-size: 15px;

    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus{

    border-color: var(--primary-color);

    box-shadow:
        0 0 0 4px rgba(91,124,250,0.15);
}


/* =========================
   FORM GRID
========================= */

.form-grid{

    display: grid;

    grid-template-columns: 250px 1fr;

    gap: 20px;

    align-items: center;

    margin-bottom: 18px;
}

.form-grid label{

    font-weight: 600;
}


/* =========================
   TABLE
========================= */

.table-container{

    overflow-x: auto;

    border-radius: var(--radius);

    background: white;

    box-shadow: var(--shadow);
}

.admin-table{

    width: 100%;

    min-width: 1100px;

    border-collapse: collapse;
}

.admin-table th{

    background: var(--primary-color);

    color: white;

    padding: 16px;

    text-align: left;

    border-right:
        1px solid rgba(255,255,255,0.15);
}

.admin-table td{

    padding: 14px;

    border-bottom:
        1px solid #e5e7eb;

    border-right:
        1px solid #e5e7eb;
}

.admin-table tr:hover{

    background: #f8fbff;
}


/* =========================
   BADGES
========================= */

.badge{

    display: inline-block;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;
}


/* =========================
   QUESTION OPTIONS
========================= */

#options{

    display: flex;

    flex-direction: column;

    gap: 16px;

    margin-top: 20px;
}


/* =========================
   OPTION CARD
========================= */

.option-label{

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 18px;

    border: 2px solid transparent;

    cursor: pointer;

    transition: 0.3s;

    font-weight: 600;
}

.option-label:hover{

    transform: translateY(-2px);
}

.option-label input{

    width: auto;

    transform: scale(1.2);
}

.option-label:has(input:checked){

    border-color: #111827;
}


/* =========================
   SCORE COLORS
========================= */

.score-1{

    background: rgba(215,101,66,0.18);

    border-color: rgba(215,101,66,0.55);
}

.score-1 input{

    accent-color: #d76542;
}

.score-2{

    background: rgba(224,154,75,0.18);

    border-color: rgba(224,154,75,0.55);
}

.score-2 input{

    accent-color: #e09a4b;
}

.score-3{

    background: rgba(229,209,130,0.22);

    border-color: rgba(229,209,130,0.65);
}

.score-3 input{

    accent-color: #c8a93d;
}

.score-4{

    background: rgba(167,189,111,0.22);

    border-color: rgba(167,189,111,0.65);
}

.score-4 input{

    accent-color: #88a04b;
}

.score-5{

    background: rgba(42,161,141,0.18);

    border-color: rgba(42,161,141,0.55);
}

.score-5 input{

    accent-color: #2aa18d;
}


/* =========================
   REPORT GRID
========================= */

.report-grid{

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


/* =========================
   HISTORY TABLE
========================= */

.history-table{

    width: 100%;

    border-collapse: collapse;

    margin-top: 15px;
}

.history-table th,
.history-table td{

    padding: 14px;

    border-bottom:
        1px solid #e5e7eb;

    text-align: left;
}


/* =========================
   HAMBURGER
========================= */

.hamburger{

    display: none;

    font-size: 28px;

    cursor: pointer;
}


/* =========================
   MOBILE
========================= */

@media screen and (max-width: 1024px){

    .report-grid{

        grid-template-columns: 1fr;
    }

    .form-grid{

        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px){

    .sidebar{

        left: -260px;
    }

    .sidebar.show{

        left: 0;
    }

    .main-content{

        margin-left: 0;

        width: 100%;

        padding: 20px;
    }

    .hamburger{

        display: block;
    }

    .page-header{

        align-items: flex-start;
    }

    .kpi-grid{

        grid-template-columns: 1fr;
    }
}

/* =========================
   PROGRESS BAR
========================= */

.progress-container{

    width: 100%;

    height: 12px;

    background: #dbe7f5;

    border-radius: 999px;

    overflow: hidden;

    margin-bottom: 25px;
}

.progress-bar{

    height: 100%;

    width: 0;

    background: var(--primary-color);

    transition: 0.3s;
}


/* =========================
   REPORT SCORE ROW
========================= */

.score-row{

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 14px 0;

    border-bottom:
        1px solid #e5e7eb;
}


/* =========================
   SECTION TITLE
========================= */

.section-title{

    margin-bottom: 20px;

    font-size: 22px;

    font-weight: 700;
}


/* =========================
   FLEX WRAP
========================= */

.flex-wrap{

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


/* =========================
   ACTION BUTTON GROUP
========================= */

.action-group{

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


/* =========================
   MODAL
========================= */

.modal-overlay{

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,0.45);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 5000;

    padding: 20px;
}

.modal-content{

    background: white;

    width: 100%;

    max-width: 1000px;

    max-height: 90vh;

    overflow-y: auto;

    border-radius: 24px;

    padding: 30px;

    box-shadow:
        0 12px 40px rgba(0,0,0,0.18);
}


/* =========================
   AQ SCORE DISPLAY
========================= */

.aq-score{

    font-size: 70px;

    font-weight: 700;

    line-height: 1;

    margin: 20px 0;
}


/* =========================
   REPORT TAGS
========================= */

.tag{

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 16px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;

    background: rgba(91,124,250,0.12);

    color: var(--primary-color);
}


/* =========================
   EMPTY STATE
========================= */

.empty-state{

    text-align: center;

    padding: 40px 20px;

    color: var(--text-light);
}


/* =========================
   MOBILE HEADER FIX
========================= */

@media screen and (max-width: 768px){

    .page-header h1{

        font-size: 24px;
    }

    .aq-score{

        font-size: 52px;
    }

    .card{

        padding: 20px;
    }
}

/* =========================
   ADMIN REPORT PAGE
========================= */

.admin-report-page{

    width: 100%;

    padding: 30px;

    box-sizing: border-box;
}


/* =========================
   HEADER
========================= */

.admin-report-header{

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

    gap: 20px;
}

.admin-report-header h1{

    flex: 1;

    text-align: center;

    margin: 0;
}


/* =========================
   LOGO
========================= */

.logo-placeholder{

    width: 90px;

    height: 90px;

    border-radius: 20px;

    background: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    color: var(--primary-color);

    border:
        1px solid rgba(0,0,0,0.08);
}


/* =========================
   DESKTOP GRID
========================= */

.admin-report-layout{

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 25px;

    align-items: start;

    margin-bottom: 25px;
}


/* =========================
   COLUMNS
========================= */

.left-column,
.right-column{

    display: flex;

    flex-direction: column;

    gap: 25px;
}


/* =========================
   CARDS
========================= */

.report-card{

    padding: 30px;
}

.questionnaire-wrapper{

    padding: 30px;
}


/* =========================
   USER NAME
========================= */

.report-user-name{

    font-size: 42px;

    font-weight: 700;

    margin-bottom: 20px;
}


/* =========================
   USER INFO
========================= */

.report-user-info p{

    margin-bottom: 14px;

    font-size: 17px;
}


/* =========================
   QUESTION SECTION
========================= */

.question-section-title{

    margin-top: 30px;

    margin-bottom: 18px;

    font-size: 24px;

    font-weight: 700;
}


/* =========================
   QUESTION CARD
========================= */

.question-answer-card{

    padding: 22px;

    border-radius: 20px;

    background: rgba(255,255,255,0.7);

    margin-bottom: 18px;

    border:
        1px solid rgba(0,0,0,0.05);
}


/* =========================
   SCORE TAG
========================= */

.score-tag{

    margin-top: 15px;
}


/* =========================
   MOBILE
========================= */

@media screen and (max-width: 900px){

    .admin-report-layout{

        grid-template-columns: 1fr;
    }

    .admin-report-header{

        flex-direction: column;

        align-items: flex-start;
    }

    .admin-report-header h1{

        text-align: left;
    }

    .report-user-name{

        font-size: 32px;
    }

    .admin-report-page{

        padding: 20px;
    }
}

/* =========================
   APP LOGO
========================= */

.app-logo{

    width: 160px;

    height: auto;

    object-fit: contain;
}

/* =========================
   ADMIN REPORT HEADER LOGO
========================= */

.admin-report-header .app-logo{

    width: 90px;

    height: auto;

    object-fit: contain;
}

/* =========================
   DISCLAIMER FOOTER
========================= */

.disclaimer-footer{

    margin-top:40px;

    padding:25px;

    border-top:
        1px solid #d9e2ec;

    color:var(--text-light);

    font-size:13px;

    line-height:1.8;

    text-align:justify;
}

.disclaimer-title{

    color:var(--text-dark);

    font-weight:700;

    margin-bottom:10px;
}