
body { background: #f8fafc; }
.cv-main { background: #fff; border-radius:18px; box-shadow:0 4px 24px rgba(0,0,0,0.07); padding: 2.5rem; }
.profile-photo { width:140px; height:140px; object-fit:cover; border-radius:50%; border:5px solid #e3e6ea; box-shadow:0 2px 8px rgba(0,0,0,0.08); background: #fff !important; transition: background 0.2s, border 0.2s; }
.cv-photo-card, .card.cv-photo-card { background: #fff !important; border-radius: 12px !important; border: 1px solid #e3e6ea !important; margin-bottom: 1rem !important; transition: box-shadow 0.2s, background 0.2s, border 0.2s; box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important; }
.cv-photo-card .form-label .text-muted, .cv-photo-card label.form-label .text-muted, .cv-photo-card label.form-label span.text-muted, #photoInfo {
  color: #888 !important;
  display: inline !important;
  visibility: visible !important;
  background: transparent !important;
}
body.dark .cv-photo-card .form-label .text-muted,
body.dark .cv-photo-card label.form-label .text-muted,
body.dark .cv-photo-card label.form-label span.text-muted,
body.dark #photoInfo {
  color: #cfd8dc !important;
  display: inline !important;
  visibility: visible !important;
  background: transparent !important;
}
body.darkwhite .cv-photo-card .form-label .text-muted,
body.darkwhite .cv-photo-card label.form-label .text-muted,
body.darkwhite .cv-photo-card label.form-label span.text-muted,
body.darkwhite #photoInfo {
  color: #888 !important;
  display: inline !important;
  visibility: visible !important;
  background: transparent !important;
}
body.dark .cv-photo-card { background: #23272b !important; color: #f1f1f1 !important; border-color: #222 !important; }
body.darkwhite .cv-photo-card { background: #fff !important; color: #222 !important; border-color: #e3e3e3 !important; }
.cv-photo-card:hover { box-shadow: 0 4px 18px rgba(13,110,253,0.13) !important; border-color: #0d6efd33 !important; }
body.dark .profile-photo { background:#23272b !important; border-color:#444 !important; }
body.darkwhite .profile-photo { background:#fff !important; border-color:#e3e3e3 !important; }
.cv-input, .form-control.cv-input { background: #fff !important; color: #222 !important; border-color: #e3e6ea !important; transition: background 0.2s, color 0.2s, border 0.2s; }
body.dark .cv-input { background: #181a1b !important; color: #f1f1f1 !important; border-color: #444 !important; }
body.darkwhite .cv-input { background: #fff !important; color: #222 !important; border-color: #e3e3e3 !important; }
.edit-btn { float:right; }
.section-title { border-left: 4px solid #0d6efd; padding-left: .7rem; font-weight: 600; margin-top:2rem; margin-bottom:1rem; }
.skill-badge { display:none; }
.skill-card {
    transition: box-shadow 0.2s;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #e3e6ea;
}

body.dark .skill-card {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #222 !important;
}
body.darkwhite .skill-card {
    background: #fff !important;
    color: #222 !important;
    border-color: #e3e3e3 !important;
}

/* Experience & Education Card Theme */
.cv-exp-card, .cv-edu-card, .cv-project-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e3e6ea;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s, background 0.2s;
}
body.dark .cv-exp-card, body.dark .cv-edu-card, body.dark .cv-project-card {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #222 !important;
}
body.darkwhite .cv-exp-card, body.darkwhite .cv-edu-card, body.darkwhite .cv-project-card {
    background: #fff !important;
    color: #222 !important;
    border-color: #e3e3e3 !important;
}
.cv-exp-card:hover, .cv-edu-card:hover, .cv-project-card:hover {
    box-shadow: 0 4px 18px rgba(13,110,253,0.13);
    border-color: #0d6efd33;
}
.skill-card:hover {
    box-shadow: 0 4px 18px rgba(13,110,253,0.13);
    border-color: #0d6efd33;
}
/* DARK MODE BASE */
body.dark {
    background: #181a1b !important;
    color: #f1f1f1 !important;
}
body.dark .cv-main {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #222 !important;
}
body.dark .section-title {
    border-left-color: #0dcaf0;
}
body.dark .skill-card {
    background: #23272b !important;
    border-color: #222 !important;
}

/* Project Card Theme */

.card.cv-project-card .card-body {
    background: transparent !important;
}
body.dark .card.cv-project-card {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #222 !important;
}
body.dark .card.cv-project-card .card-body {
    background: transparent !important;
    color: #f1f1f1 !important;
}
body.darkwhite .card.cv-project-card {
    background: #fff !important;
    color: #222 !important;
    border-color: #e3e3e3 !important;
}
body.darkwhite .card.cv-project-card .card-body {
    background: transparent !important;
    color: #222 !important;
}


body.dark .card.cv-project-card {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #222 !important;
}

body.darkwhite .card.cv-project-card {
    background: #fff !important;
    color: #222 !important;
    border-color: #e3e3e3 !important;
}


body.dark .rounded-circle.bg-primary.bg-opacity-10 {
    background: #0dcaf022 !important;
}
body.dark .btn-outline-secondary {
    color: #f1f1f1;
    border-color: #666;
}
body.dark .btn-outline-secondary:hover {
    background: #444;
}
/* DARK WHITE (SOFT) MODE */
body.darkwhite {
    background: #f5f6fa !important;
    color: #222 !important;
}
body.darkwhite .cv-main {
    background: #fff !important;
    color: #222 !important;
    border-color: #e3e3e3 !important;
}
body.darkwhite .section-title {
    border-left-color: #adb5bd;
}
body.darkwhite .skill-card {
    background: #fff !important;
    border-color: #e3e3e3 !important;
}
body.darkwhite .rounded-circle.bg-primary.bg-opacity-10 {
    background: #adb5bd22 !important;
}

body.light {
    background-color: #ffffff;
    color: #000000;
}

body.dark {
    background-color: #121212;
    color: #ffffff;
}

body.dark .btn {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark .btn-outline-dark {
    background-color: #ffffff;
    color: #000000;
}


/*<style>
*/
.icon-radio input:checked + .icon-choice {
border: 2px solid #0d6efd;
background: #e7f1ff;
box-shadow: 0 2px 8px rgba(13,110,253,0.13);
}
.icon-radio .icon-choice {
transition: border 0.2s, background 0.2s;
}
/* DARK MODE MODAL */
body.dark .modal-content {
background: #23272b !important;
color: #f1f1f1 !important;
border-color: #222 !important;
}
body.dark .modal-header,
body.dark .modal-footer {
background: #23272b !important;
border-color: #222 !important;
}
body.dark .modal-title,
body.dark .modal-body,
body.dark .modal-footer {
color: #f1f1f1 !important;
}
body.dark .modal-content input,
body.dark .modal-content select,
body.dark .modal-content textarea {
background: #181a1b !important;
color: #f1f1f1 !important;
border-color: #444 !important;
}
body.dark input.form-control,
body.dark select.form-select,
body.dark textarea.form-control {
    background: #181a1b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}
body.dark input.form-control:focus,
body.dark select.form-select:focus,
body.dark textarea.form-control:focus {
    background: #23272b !important;
    color: #fff !important;
    border-color: #0dcaf0 !important;
}
body.dark input.form-control::placeholder,
body.dark textarea.form-control::placeholder {
    color: #bbb !important;
}
body.dark select.form-select option {
    background: #23272b !important;
    color: #f1f1f1 !important;
}
body.darkwhite input.form-control,
body.darkwhite select.form-select,
body.darkwhite textarea.form-control {
    background: #fff !important;
    color: #222 !important;
    border-color: #e3e3e3 !important;
}
body.darkwhite input.form-control::placeholder,
body.darkwhite textarea.form-control::placeholder {
    color: #888 !important;
}
body.dark .modal-content input::placeholder,
body.dark .modal-content textarea::placeholder {
color: #bbb !important;
}
body.dark .modal-content .btn {
border-color: #f1f1f1;
color: #f1f1f1;
}
body.dark .modal-content .btn-primary {
background: #0d6efd;
border-color: #0d6efd;
color: #fff;
}
body.dark .modal-content .btn-secondary {
background: #444;
border-color: #555;
color: #fff;
}
body.dark .modal-content .btn-close {
filter: invert(1);
}

/* Flex row untuk baris info pengalaman/pendidikan agar tidak wrap */
.cv-exp-card .d-flex,
.cv-edu-card .d-flex {
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow-x: auto !important;
    gap: 8px;
}
.cv-exp-card .d-flex::-webkit-scrollbar,
.cv-edu-card .d-flex::-webkit-scrollbar {
    display: none;
}
.cv-exp-card .d-flex > div,
.cv-edu-card .d-flex > div {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cv-year {
    flex: 0 0 auto !important;
    margin-left: 16px;
    min-width: 65px;
    /* max-width: 110px; */
    text-align: right;
    white-space: nowrap;
    font-size: 1rem;
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
}
@media (max-width: 480px) {
    .cv-year {
        font-size: 0.85rem;
        min-width: 48px;
        margin-left: 8px;
    }
    .cv-exp-card .d-flex > div,
    .cv-edu-card .d-flex > div {
        font-size: 0.95rem;
    }
}

/* Pastikan .cv-year selalu muncul di dark mode */
body.dark .cv-year {
    color: #fff !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: normal !important;
    letter-spacing: normal !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.project-desc-text {
    color: #6c757d !important;
}
body.dark .project-desc-text {
    color: #bfc6ce !important;
}
body.darkwhite .project-desc-text {
    color: #888 !important;
}

body.dark .skill-card .text-muted {
    color: #b0bfcf !important; /* atau warna terang lain yang kontras di dark */
}
.themed-list-item {
    background: #fff !important;
    color: #222 !important;
}
body.dark .themed-list-item {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #222 !important;
}
body.darkwhite .themed-list-item {
    background: #fff !important;
    color: #222 !important;
    border-color: #e3e3e3 !important;
}

body.darkwhite .skill-card .text-muted {
    color: #888 !important; /* atau warna yang cocok untuk darkwhite */
}
