:root {
    --accent-cyan: #06B6D4;
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #EFF6FF, #F9FAFB);
    color: #111827;
}





/* HEADER */
header {
    background-color: #1E3A8A;
    color: white;
    text-align: center;
    padding: 20px;
}




/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}




/* DASHBOARD */
.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}




.card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}




.card h2 {
    margin: 0;
    color: #3B82F6;
}




/* FORMS */
.forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}




.form-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}




.form-card input,
.form-card select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
}




button {
    background: #3B82F6;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}




.table-section {
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-top: 20px;
}




table {
    width: 100%;
    border-collapse: collapse;
}




thead {
    background-color: #F3F4F6;
}




th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}




tr:hover {
    background-color: #EFF6FF;
}
.rating-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}




.rating {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}




.rating span {
    padding: 8px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    background: #F3F4F6;
    transition: 0.2s ease;
}




.rating span:hover {
    background: #3bf664;
    color: white;
}




.rating .active {
    background: #2dbd4d;
    color: white;
}
.scoring-note {
    font-size: 13px;
    opacity: 0.8;
}
.rating span {
    padding: 8px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    background: #F3F4F6;
    transition: all 0.2s ease;
}




.rating span:hover {
    background: #3bf664;
    color: white;
    transform: translateY(-2px);
}




.rating span:active {
    transform: scale(0.95);
}
.risk-high {
    color: #EF4444;
    font-weight: 600;
}




.risk-moderate {
    color: #F59E0B;
    font-weight: 600;
}




.risk-low {
    color: #10B981;
    font-weight: 600;
}
tr {
    transition: background 0.2s ease, transform 0.1s ease;
}




tr:hover {
    background-color: #EFF6FF;
    transform: scale(1.01);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1E3A8A;
    color: white;
    padding: 20px;
}

.header-text {
    text-align: left;
}

.logout-btn {
    width: 120px;
    background-color: #EF4444;
}

.logout-btn:hover {
    background-color: #DC2626;
}
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#welcomeUser {
    font-weight: 500;
}
/* RISK BADGES UI */
.low-risk {
    background: #D1FAE5;
    color: #065F46;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.moderate-risk {
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.high-risk {
    background: #FEE2E2;
    color: #991B1B;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* TABLE SCROLL */
.scroll-table {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

/* FIX TABLE WIDTH */
.scroll-table table {
    width: 100%;
    border-collapse: collapse;
}
.scroll-table {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ebebeb;
    border-radius: 6px;
}

.scroll-table table {
    width: 100%;
}
tr:hover {
    background-color: #EFF6FF;
    transition: 0.2s;
}
thead th {
    position: sticky;
    top: 0;
    background: #F3F4F6;
    z-index: 2;
}
.trend-up {
    color: #10B981;
    font-weight: 600;
}

.trend-down {
    color: #EF4444;
    font-weight: 600;
}

.trend-stable {
    color: #6B7280;
}
.score-bar {
    background: #E5E7EB;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.score-fill {
    height: 100%;
    border-radius: 10px;
}
td {
    vertical-align: middle;
    padding: 12px 8px;
}
/* ===== MEGA KIT DARK GREEN PREMIUM THEME ===== */

body {
    background: #0B0F14;
    color: #E5E7EB;
}

.header-container {
    background: #111827;
    border-bottom: 1px solid #1F2937;
}

.card, .form-card, .table-section {
    background: #111827;
    border: 1px solid #1F2937;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    color: #E5E7EB;
}

.card h2 {
    color: #15803D;
}

button {
background: var(--primary-green);    border: none;
}

button:hover {
    transform: translateY(-3px);
}

thead {
    background: #0F172A;
}

th, td {
    border-bottom: 1px solid #1F2937;
}

.rating span {
    background: #1F2937;
    border: 1px solid #374151;
    color: #E5E7EB;
}

.rating span:hover {
    background: #15803D;
    color: #0B0F14;
}

.low-risk {
    background: rgba(34,197,94,0.15);
    color: #4ADE80;
}

.moderate-risk {
    background: rgba(245,158,11,0.15);
    color: #F59E0B;
}

.high-risk {
    background: rgba(239,68,68,0.15);
    color: #EF4444;
}
/* PREMIUM TABLE HOVER */

tbody tr:hover {
    background: rgba(34,197,94,0.08);
    transition: 0.2s ease;
}

tbody tr:hover td {
    color: #FFFFFF;
}
button {
    background: linear-gradient(135deg, #15803D, #16A34A);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #16A34A, #15803D);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34,197,94,0.3);
}
/* ===== PREMIUM SELECT DROPDOWN ===== */

.form-card select {
    background: #1F2937;
    color: #E5E7EB;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

/* Hover effect */
.form-card select:hover {
    border-color: #15803D;
}

/* Focus effect (pag naka-click) */
.form-card select:focus {
    border-color: #15803D;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

/* Dropdown arrow custom */
.form-card select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23E5E7EB' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}
/* ===== FIX TABLE HEADER VISIBILITY ===== */

thead {
    background: #111827 !important;
}

thead th {
    color: #15803D !important;
    font-weight: 600;
    border-bottom: 1px solid #1F2937;
}
/* ===== EXECUTIVE HISTORY SELECT ===== */

#historySelect {
    background: #1F2937;
    color: #E5E7EB;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.3s ease;
}

#historySelect:hover {
    border-color: #15803D;
}

#historySelect:focus {
    border-color: #15803D;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}
/* ===== EXECUTIVE FORM INPUT STYLE ===== */

.form-card input {
    background: #1F2937;
    color: #E5E7EB;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-card input::placeholder {
    color: #9CA3AF;
}

.form-card input:hover {
    border-color: #15803D;
}

.form-card input:focus {
    border-color: #15803D;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    outline: none;
}
/* ===== REMOVE HARSH HEADER LINE ===== */

thead {
    border-bottom: 1px solid #1F2937;
}

thead th {
    border-bottom: none;
}

th, td {
    border-bottom: 1px solid #1F2937;
}
/* EXECUTIVE HISTORY RISK TEXT */

#historyTable td:nth-child(2) {
    font-weight: 600;
}

#historyTable td:nth-child(2):contains("Low") {
    color: #15803D;
}

#historyTable td:nth-child(2):contains("Moderate") {
    color: #F59E0B;
}

#historyTable td:nth-child(2):contains("High") {
    color: #EF4444;
}
.low-risk,
.moderate-risk,
.high-risk {
    white-space: nowrap;
}

#supplierTable td:nth-child(9) {
    min-width: 120px;
}
/* ===== CHART SECTION ===== */

.chart-section {
    background: #111827;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #1F2937;
}

.chart-section h3 {
    margin-bottom: 20px;
    color: #E5E7EB;
}
.trend-section {
    background: #111827;
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
    border: 1px solid #1F2937;
}
.trend-section h3 {
    margin-bottom: 20px;
    color: #E5E7EB;
}
/* ===== DASHBOARD LAYOUT ===== */

.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #0F172A;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #1F2937;
}

.sidebar h2 {
    color: #15803D;
    margin-bottom: 20px;
}

.sidebar button {
    background: #1F2937;
    border: none;
    color: #E5E7EB;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
}

.sidebar button:hover {
    background: #15803D;
    color: #0B0F14;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* SECTIONS */
.content-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chart-section {
    height: 350px;
    padding: 20px 30px;
}/* FIX CHART SIZE */

.chart-section canvas {
    max-height: 300px;
}
.register-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid #15803D;
    color: #15803D;
}

.register-btn:hover {
    background: #15803D;
    color: white;
}
/* SIDEBAR LOGO */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo-section img {
    width: 200px;
    height: auto;
}
.logo-section h2 {
    color: #15803D;
    font-size: 18px;
}
/* ===== PERFORMANCE INTELLIGENCE ===== */

.insight-section {
    background: #111827;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #1F2937;
}

.insight-section h3 {
    margin-bottom: 15px;
    color: #E5E7EB;
}

.insight-box {
    background: rgba(34,197,94,0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(34,197,94,0.2);
    color: #E5E7EB;
    line-height: 1.6;
}

/* ===== COMPARISON RESULT ===== */

#comparisonResult {
    margin-top: 20px;
    padding: 20px;
    background: #111827;
    border: 1px solid #1F2937;
    border-radius: 12px;
    line-height: 1.6;
}

#comparisonResult strong {
    color: #16A34A;
}
/* ===== COMPARISON GRID ===== */

.compare-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.compare-card {
    flex: 1;
    padding: 20px;
    background: #111827;
    border: 1px solid #1F2937;
    border-radius: 12px;
    text-align: center;
}

.compare-card h3 {
    margin-bottom: 10px;
    color: #E5E7EB;
}

.compare-card p {
    font-size: 18px;
}

.compare-card.winner {
    border: 2px solid #15803D;
    box-shadow: 0 0 15px rgba(21,128,61,0.3);
}

.compare-final {
    margin-top: 20px;
    padding: 15px;
    background: #0F172A;
    border-radius: 10px;
    font-weight: bold;
}
.progress {
    height: 8px;
    background: #1F2937;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #15803D;
    border-radius: 10px;
}

.compare-card.winner {
    border: 2px solid #15803D;
    box-shadow: 0 0 20px rgba(21,128,61,0.35);
    transform: scale(1.03);
}
/* ===== COMPARISON CONTROLS ===== */

.compare-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.select-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.select-group label {
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 0.7;
}

.select-group select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1F2937;
    background: #111827;
    color: #E5E7EB;
    font-size: 14px;
}

.select-group select:focus {
    border: 1px solid #15803D;
    outline: none;
}

.compare-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}

h3 {
    position: relative;
    margin-bottom: 15px;
}

h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 6px;
    background: var(--accent-cyan);
    border-radius: 10px;
}
.preferred-badge {
    margin-left: 8px;
    background: #06B6D4;
    color: #0B0F14;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.success-box {
    background: rgba(34,197,94,0.1);
    border: 1px solid #22C55E;
    padding: 15px;
    border-radius: 8px;
    color: #22C55E;
    font-weight: 500;
}
.preferred-card {
    border: 2px solid #06B6D4;
}

.preferred-card h2 {
    color: #06B6D4;
}
/* ===== PREMIUM REMOVE BUTTON ===== */
.remove-btn {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.remove-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(239,68,68,0.35);
}

.remove-btn:active {
    transform: scale(0.95);
}
/* ===== USER STATUS BADGES ===== */

.approved-badge {
    background: rgba(34,197,94,0.15);
    color: #22C55E;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.rejected-badge {
    background: rgba(239,68,68,0.15);
    color: #EF4444;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}