@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600&display=swap');

/* GLOBAL */
body {
    margin: 0;
    background: #f1f4f8;
    font-family: 'Work Sans', sans-serif;
}

/* HEADER */
.top-header {
    background: #004A99;
    color: white;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    font-size: 20px;
    font-weight: 500;
}

.top-header a {
    color: white;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 400;
}

/* TOP MENU */
.top-menu {
    background: white;
    padding: 12px 25px;
    border-bottom: 1px solid #d8dfe8;
}

.top-menu a {
    margin-right: 32px;
    font-weight: 500;
    color: #004A99;
    text-decoration: none;
}

.top-menu a:hover {
    color: #002e66;
}

/* MAIN WRAPPER */
.main-body {
    padding: 35px;
}

/* ROW FORM HEADER */
.form-row-header {
    width: 520px;
    margin: 0 auto 25px auto;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.form-row-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    flex-wrap: wrap;
}

.form-row-line .label {
    font-weight: 600;
    color: #333;
}

.form-row-line .value {
    font-weight: 500;
    color: #111;
}

.term-select {
    padding: 6px 10px;
    border: 1px solid #cbd3df;
    border-radius: 6px;
    font-family: 'Work Sans';
}

/* PROGRESS BAR */
.progress-section {
    width: 520px;
    margin: 0 auto 20px auto;
}

.progress-label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #dbe3ee;
    border-radius: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: #004A99;
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

/* WIZARD CARD */
.wizard-card {
    width: 520px;
    margin: auto;
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.wizard-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* RATING OPTIONS */
.rating-option {
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
}

.rating-label {
    font-size: 16px;
    font-weight: 500;
}

.rating-option input {
    margin-right: 10px;
    transform: scale(1.2);
}

.rating-desc {
    font-size: 13px;
    color: #555;
    margin-left: 28px;
    margin-top: 4px;
    line-height: 1.45;
}

/* EVIDENCE BOX */
.evidence-box label {
    font-size: 15px;
    font-weight: 600;
}

.evidence-box textarea {
    width: 100%;
    height: 85px;
    border-radius: 8px;
    border: 1px solid #c3c8cf;
    padding: 10px;
    font-size: 14px;
}

/* TARGET SECTION */
.target-section {
    margin-top: 25px;
}

.target-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.target-input {
    width: 100%;
    height: 90px;
    border: 1px solid #cbd3df;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

/* BUTTONS */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}

.nav-btn {
    background: #004A99;
    color: white;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.nav-btn:hover {
    background: #003d80;
}

.nav-btn:disabled {
    background: #b8b8b8;
    cursor: not-allowed;
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
    font-size: 13px;
    color: #555;
}


.step-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 650px;
    margin: 0 auto;
    font-family: 'Work Sans', sans-serif;
}

.step-header {
    margin-bottom: 20px;
}

.step-number {
    font-size: 14px;
    color: #003c80;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e6edf5;
    border-radius: 4px;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    background: #0d6efd;
    border-radius: 4px;
}

.criterion-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
}

.criterion-sub {
    font-size: 14px;
    margin-bottom: 18px;
    color: #555;
}

.target-card {
    background: #f8faff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e9f2;
}

.input-label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.input-box {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #d6d6d6;
    resize: vertical;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.btn-prev,
.btn-next {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
}

.btn-prev {
    background: #d9d9d9;
}

.btn-next {
    background: #0d6efd;
    color: white;
}

.info-banner {
    width: 100%;
    background: #e8f0fe;  /* light DGPS blue */
    padding: 14px 0;
    margin: 10px 0 25px 0;
    border-radius: 6px;
}

.info-banner-inner {
    width: 70%;  
    margin: auto;  
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: #002e6e; /* DGPS dark blue */
}

.info-item {
    display: flex;
    gap: 5px;
}

.term-select {
    padding: 4px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
}

.wizard-card .evidence-box,
.wizard-card .target-section {
    padding-left: 40px;
    padding-right: 40px;
}

.wizard-card textarea {
    width: 100%;
    box-sizing: border-box;
}
.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #004c97;
}

.table-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.pm-table {
    width: 100%;
    border-collapse: collapse;
}

.pm-table th {
    text-align: left;
    padding: 10px;
    background: #e9f2ff;
    color: #004c97;
    border-bottom: 2px solid #d2e4ff;
}

.pm-table td {
    padding: 10px;
    border-bottom: 1px solid #f2f2f2;
}

.status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
}

.status.pending {
    background: #d9534f;
}

.status.reviewed {
    background: #5cb85c;
}

.action-btn {
    padding: 6px 14px;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.action-btn.review {
    background: #0275d8;
}

.action-btn.view {
    background: #5cb85c;
}
.review-block h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #004c97;
    font-size: 15px;
    font-weight: 600;
}

.rating-display {
    padding: 10px;
    background: #e9f2ff;
    border-left: 4px solid #004c97;
    border-radius: 4px;
}

.descriptor-box, .evidence-read {
    background: #f5f7fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.hod-comment-box {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #bfbfbf;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

.final-note {
    margin-top: 20px;
    font-size: 14px;
    color: #444;
}

.submit-btn {
    background: #28a745;
    color: #fff;
    font-weight: 600;
}
.rating-display-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
}

/* KHDA Color Codes */
.rating-5 { background: #0A7B0A; }     /* Outstanding */
.rating-4 { background: #4BB543; }     /* Very Good */
.rating-3 { background: #1E90FF; }     /* Good */
.rating-2 { background: #FFB800; }     /* Acceptable */
.rating-1 { background: #D9534F; }     /* Weak */

.rating-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    color: white;
    font-size: 14px;
    margin-left: 8px;
}

/* KHDA colors */
.rating-5 { background: #0A7B0A; }     /* Outstanding */
.rating-4 { background: #4BB543; }     /* Very Good */
.rating-3 { background: #1E90FF; }     /* Good */
.rating-2 { background: #FFB800; }     /* Acceptable */
.rating-1 { background: #D9534F; }     /* Weak */

/* KHDA RATING BADGES */
.rating-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

/* Colours */
.badge-ou { background: #2ecc71; }   /* Outstanding */
.badge-vg { background: #27ae60; }   /* Very Good */
.badge-g  { background: #2980b9; }   /* Good */
.badge-a  { background: #f1c40f; color:#000; }  /* Acceptable */
.badge-w  { background: #e74c3c; }   /* Weak */



.hod-target-decision {
    display: flex;
    gap: 14px;
    margin: 10px 0 20px 0;
}

.target-option {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
}

.target-option input {
    display: none;
}

.target-achieved {
    background: #e7f6ee;
    color: #0a8f3d;
}
.target-partial {
    background: #fff3e0;
    color: #ef6c00;
}
.target-not {
    background: #fdecea;
    color: #c62828;
}

.target-option input:checked + span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,.08);
}

.target-option:hover {
    transform: translateY(-2px);
}

