/* --- VARIABLES --- */
:root {
    --bg-main: #0f172a; /* Slate 900 - Latar belakang utama */
    --bg-card: #1e293b; /* Slate 800 - Warna kartu */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --border-color: #334155; /* Slate 700 */
    --accent: #38bdf8; /* Sky 400 - Biru menyala */
    --accent-hover: #0284c7; /* Sky 600 */
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- BREADCRUMB --- */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: var(--text-main);
}

/* --- LAYOUT GRID UTAMA --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: start;
}

/* --- KARTU (CARDS) --- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

/* --- PROFIL CARD --- */
.profile-card {
    text-align: center;
}

.profile-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-card);
}

.profile-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.role {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Tombol */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #0f172a;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background-color: rgba(56, 189, 248, 0.1);
}

/* --- LIST ITEMS (Berdasarkan referensi gambar) --- */
.list-group {
    list-style: none;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.list-item.no-border { border-bottom: none; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }

.icon-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-main);
}
.icon-label i { font-size: 1.1rem; width: 20px; text-align: center; }
.value { color: var(--text-muted); font-size: 0.95rem; text-align: right; }
.value.link { color: var(--accent); cursor: pointer; }
.italic { font-style: italic; }

/* Detail Card Specific */
.detail-item {
    flex-direction: row;
}
.detail-item .label {
    flex: 0 0 30%;
    font-weight: 500;
    color: var(--text-main);
}
.detail-item .value {
    flex: 1;
    text-align: left;
}

/* --- GRID BAWAH (Progress Bar & Proyek) --- */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

/* Progress Bar */
.progress-item {
    margin-bottom: 20px;
}
.progress-item:last-child { margin-bottom: 0; }

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-bg {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent);
    border-radius: 10px;
    width: 0; /* Diatur oleh JS saat load */
    transition: width 1.5s ease-in-out;
}

/* List Proyek */
.project-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.proj-name {
    font-size: 0.95rem;
    font-weight: 500;
}
.divider {
    border: none;
    border-top: 1px solid var(--border-color);
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-warning { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-info { background: rgba(56, 189, 248, 0.15); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.3); }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .detail-item .value {
        text-align: left;
    }
}

/* =========================================
   TAMBAHAN UNTUK HALAMAN PROJECTS.HTML
   ========================================= */

/* Tombol Lihat Semua Proyek di Dashboard */
.btn-view-all {
    display: block;
    text-align: center;
    margin-top: 24px;
    padding: 12px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.btn-view-all:hover {
    background: var(--accent);
    color: var(--bg-main);
}

/* Header Halaman Proyek */
.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

/* Grid Halaman Proyek */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Kartu Proyek */
.project-card-full {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-card-full:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Gambar Proyek */
.project-img-full {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

/* Isi Teks Proyek */
.project-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1; /* Mendorong tombol ke bawah secara rata */
}

/* Label/Tag Bahasa Pemrograman */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* Aksi/Tombol dalam Kartu Proyek */
.project-actions {
    display: flex;
    gap: 12px;
}

.project-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
}

/* =========================================
   TAMBAHAN DESKRIPSI SINGKAT & FOOTER
   ========================================= */

/* Gaya untuk deskripsi singkat (gabut) */
.bio-short {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin: 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

/* Gaya untuk Footer Copyright */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}