/* Global Styles - SPK Bibit Porang AHP */
:root {
    --primary-green: #198754;
    --dark-green: #0f5132;
    --dark-blue: #0b1f3a;
    --accent-yellow: #ffc107;
    --light-bg: #f8fff9;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
}

.text-primary-green { color: var(--primary-green) !important; }
.bg-primary-green { background-color: var(--primary-green) !important; }
.bg-dark-blue { background-color: var(--dark-blue) !important; }

.btn-primary-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}
.btn-primary-green:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    color: #fff;
}

.card-modern {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.table-responsive {
    border-radius: var(--border-radius);
}

.table thead th {
    background-color: var(--dark-blue);
    color: #fff;
    font-weight: 600;
    border: none;
    white-space: nowrap;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h4 {
    color: var(--dark-blue);
    font-weight: 700;
}

.search-box {
    max-width: 300px;
}

.stat-card {
    border-left: 4px solid var(--primary-green);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Login styles moved to assets/css/auth.css */

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
    .print-report { box-shadow: none !important; border: none !important; }
}

/* Ranking cards mobile */
.ranking-card-mobile {
    border-left: 4px solid var(--primary-green);
    margin-bottom: 1rem;
}

.ranking-card-mobile.rank-1 {
    border-left-color: var(--accent-yellow);
    background: linear-gradient(135deg, #fffde7, #fff);
}

/* AHP tables */
.ahp-table {
    font-size: 0.875rem;
}
.ahp-table td, .ahp-table th {
    text-align: center;
    vertical-align: middle;
}

/* Wizard steps */
.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: #e9ecef;
    font-size: 0.875rem;
    color: #6c757d;
}

.wizard-step.active {
    background: var(--primary-green);
    color: #fff;
}

.wizard-step.completed {
    background: #d1e7dd;
    color: var(--dark-green);
}

.wizard-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.wizard-step.active .step-num {
    background: rgba(255,255,255,0.3);
}

.wizard-step.completed .step-num {
    background: var(--primary-green);
    color: #fff;
}

/* Recommendation card */
.recommendation-card {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.recommendation-card .trophy-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
