/* VARIABEL TEMA & WARNA */
:root {
    --primary-color: #0c694a; /* Hijau UIN/PBA */
    --primary-light: #169b6f;
    --primary-dark: #074731;
    --secondary-color: #f7b731; /* Aksen Kuning/Emas */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff7675;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* RESET & DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

/* NAVBAR */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.btn-login {
    background-color: var(--primary-light);
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px;
}

.btn-login:hover {
    background-color: var(--primary-color);
}

.btn-login.active::after {
    display: none;
}

/* LAYOUT UTAMA */
.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    min-height: 70vh;
}

.hero-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.hero-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* KOMPONEN CARD */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

/* TAB CONTENT */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FORM STYLES */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafbfa;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 155, 111, 0.1);
    background-color: #fff;
}

.upload-group {
    background-color: #f4f6f8;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed #b2bec3;
    text-align: center;
}

.upload-group input[type="file"] {
    display: block;
    margin: 1rem auto;
    font-size: 0.9rem;
}

small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
}

/* TOMBOL */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 105, 74, 0.2);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

/* SPINNER & LOADING */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border-left-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* ALERTS */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.alert-success {
    background-color: #e3fbed;
    color: var(--primary-dark);
    border: 1px solid #bdf2d5;
}

/* TABEL & DASHBOARD */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f4f6f8;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.menunggu { background-color: #f1f2f6; color: #57606f; }
.badge.revisi { background-color: #fff3cd; color: #856404; }
.badge.di-acc { background-color: #d4edda; color: #155724; }

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* SEARCH BOX */
.search-box {
    display: flex;
    gap: 1rem;
}

.search-box input {
    flex: 1;
}

/* KARTU STATUS (Hasil Pencarian) */
.status-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 5px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-info h3 {
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.status-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.download-btn {
    background-color: #f1f2f6;
    color: #2f3542;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #dfe4ea;
}
.download-btn:hover {
    background-color: #eccc68;
    color: #2f3542;
}

/* GRID STATS (Admin Dashboard) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}
