 
 :root {
    --primary-color: #26A69A;
    --primary-hover: #00897B;
    --bg-color: #E0F2F1;
    --text-dark: #2D3748;
    --text-gray: #718096;
    --text-light-gray: #A0AEC0;
    --danger-red: #F56565;
    --danger-bg: #FFF5F5;
    --info-blue: #4299E1;
    --info-bg: #EBF8FF;
    --success-green: #38A169;
    --success-bg: #F0FFF4;
    --warning-orange: #DD6B20;
    --warning-bg: #FFFAF0;
    --border-color: #EDF2F7;
    --purple-logout: #7C3AED;
    --purple-hover: #6D28D9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}
/* --- ORNAMEN LATAR BELAKANG DESAINER --- */

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(38, 166, 154, 0.15) 2px, transparent 2px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

.bg-shape-1 {
    position: fixed;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background-color: #4DB6AC;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    opacity: 0.6;
    transform: rotate(45deg);
    filter: blur(40px);
}

.bg-shape-2 {
    position: fixed;
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background-color: #B2DFDB;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
    filter: blur(60px);
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.bg-ornament {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    color: rgba(38, 166, 154, 0.15);
    animation: floatAnim 8s ease-in-out infinite;
}

.bg-ornament-1 {
    top: 12%;
    left: 4%;
    width: 180px;
    animation-delay: 0s;
}

.bg-ornament-2 {
    bottom: 8%;
    right: 4%;
    width: 220px;
    animation-delay: 2s;
    color: rgba(38, 166, 154, 0.10);
}

.bg-ornament-3 {
    top: 15%;
    right: 8%;
    width: 140px;
    animation-delay: 4s;
}

.bg-ornament-4 {
    bottom: 15%;
    left: 8%;
    width: 120px;
    animation-delay: 1s;
    transform: rotate(-15deg);
}
/* --- CONTAINER UTAMA --- */

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    min-width: 768px;
    height: 90vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
}
/* --- HEADER --- */

header {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(38, 166, 154, 0.3);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 30px;
    margin-right: 30px;
    border-right: 1px solid var(--border-color);
}

.date-icon {
    color: var(--primary-color);
}

.date-info h4 {
    font-size: 11px;
    color: var(--text-gray);
}

.date-info p {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.doctor-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 8px;
    padding: 5px 10px;
}

.doctor-profile:hover {
    background-color: #F7FAFC;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #ccc;
}

.doctor-info {
    text-align: right;
}

.doctor-info h4 {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.doctor-info p {
    font-size: 11px;
    color: var(--text-light-gray);
}
/* --- DROPDOWN --- */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    transform-origin: top right;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 25px 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.dropdown-header .view-profile {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

.dropdown-list {
    padding: 5px 0;
    list-style: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #F7FAFC;
}

.dropdown-item svg {
    color: var(--text-gray);
    width: 20px;
    height: 20px;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.dropdown-item-text strong {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-item-text span {
    font-size: 11px;
    color: var(--text-light-gray);
}

.dropdown-footer {
    padding: 15px 20px;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background-color: var(--purple-logout);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover {
    background-color: var(--purple-hover);
}
/* --- AREA KONTEN --- */

.content-area {
    padding: 30px;
    background-color: transparent;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 10px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

.page-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}
/* --- TABS --- */

.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 170px;
    transition: all 0.3s;
    user-select: none;
    border-top: 4px solid transparent;
    background: rgba(255, 255, 255, 0.5);
}

.tab svg {
    width: 24px;
    height: 24px;
}

.tab-text {
    display: flex;
    flex-direction: column;
}

.tab h2 {
    font-size: 16px;
    margin-bottom: 2px;
}

.tab p {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}

.tab.active {
    background-color: white;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.tab.inactive {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active-content {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- DASHBOARD STATS --- */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-blue {
    background: var(--info-bg);
    color: var(--info-blue);
}

.icon-green {
    background: var(--success-bg);
    color: var(--success-green);
}

.icon-orange {
    background: var(--warning-bg);
    color: var(--warning-orange);
}

.icon-red {
    background: var(--danger-bg);
    color: var(--danger-red);
}

.stat-info h3 {
    font-size: 22px;
    color: var(--text-dark);
}

.stat-info p {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* --- GRAFIK 3D COLORFUL DENGAN ANGKA & PERSEN --- */

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    padding: 20px 10px 0;
    border-bottom: 1px dashed var(--border-color);
    perspective: 1000px;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 12%;
    /* Sesuaikan untuk 6 batang */
    height: 100%;
    justify-content: flex-end;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.chart-bar-wrapper:hover {
    transform: translateZ(20px);
}

.bar {
    width: 100%;
    background: #f0f4f8;
    border-radius: 6px 6px 0 0;
    position: relative;
    transform: translateZ(-10px);
}

.bar-fill {
    width: 100%;
    position: absolute;
    bottom: 0;
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}
/* Style untuk Text Value di dalam Bar */

.bar-value {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: showValue 0.5s 0.3s forwards;
}

.bar-value small {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes showValue {
    to {
        opacity: 1;
    }
}
/* Warna 3D Gradient tiap hari */

.bar-fill.sen {
    background: linear-gradient(to top, #48bb78, #81e6d9);
}
/* Hijau-Teal */

.bar-fill.sel {
    background: linear-gradient(to top, #4299e1, #90cdf4);
}
/* Biru */

.bar-fill.rab {
    background: linear-gradient(to top, #f6e05e, #faf089);
}
/* Kuning */

.bar-fill.kam {
    background: linear-gradient(to top, #ed8936, #fbd38d);
}
/* Oranye */

.bar-fill.jum {
    background: linear-gradient(to top, #e53e3e, #feb2b2);
}
/* Merah */

.bar-fill.sab {
    background: linear-gradient(to top, #805ad5, #c4b5fd);
}
/* Ungu untuk Sabtu */

.chart-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}
/* --- MINI LIST (JOB TERBARU) --- */

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.mini-role {
    font-size: 11px;
    color: var(--text-light-gray);
    font-family: monospace;
}

.mini-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--success-green);
    margin-left: auto;
    background: var(--success-bg);
    padding: 4px 8px;
    border-radius: 4px;
}
/* --- INFOGRAFIS JENIS CETAKAN --- */

.infographics-panel {
    margin-top: 20px;
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-card-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.info-card-details {
    display: flex;
    flex-direction: column;
}

.info-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.info-card-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}
/* --- JOB DESAIN LIST (TABEL) --- */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 15px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.search-box input {
    border: none;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 13px;
    color: var(--text-dark);
}

.patient-list {
    background: white;
    border-radius: 8px;
    padding: 20px 0;
}

.list-header-job {
    display: grid;
    grid-template-columns: 80px 2.5fr 1.5fr 1.5fr 1.2fr 100px;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-light-gray);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.list-item-job {
    display: grid;
    grid-template-columns: 80px 2.5fr 1.5fr 1.5fr 1.2fr 100px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.3s;
}

.list-item-job:hover {
    background-color: #F7FAFC;
}

.job-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge-waiting {
    background: var(--warning-bg);
    color: var(--warning-orange);
}

.badge-progress {
    background: var(--info-bg);
    color: var(--info-blue);
}

.badge-review {
    background: #E6F7EC;
    color: #15803D;
}

.badge-approved {
    background: var(--success-bg);
    color: var(--success-green);
}

.btn-upload-small {
    background: var(--info-blue);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-upload-small:hover {
    background: var(--primary-hover);
}
/* Pagination */

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding: 0 20px;
}

.page-btn {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.page-btn:hover {
    background: #F7FAFC;
    border-color: #CBD5E0;
}

.page-btn.active-page {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 12px;
    color: var(--text-light-gray);
    margin-right: auto;
}
/* --- RIWAYAT TABLE --- */

.rfid-table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.rfid-table {
    width: 100%;
    border-collapse: collapse;
}

.rfid-table th {
    text-align: left;
    padding: 12px 15px;
    background: #F8FAFC;
    font-size: 12px;
    font-weight: 700;
    color: #4A5568;
    border-bottom: 2px solid var(--border-color);
}

.rfid-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-dark);
}

.rfid-table tr:hover {
    background: #F7FAFC;
}

.empty-rfid {
    text-align: center;
    padding: 40px;
    color: var(--text-light-gray);
}
/* --- MODAL --- */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.close-modal {
    cursor: pointer;
    font-size: 26px;
    color: var(--text-light-gray);
    transition: 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--danger-red);
    transform: rotate(90deg);
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.btn-secondary {
    background: #E2E8F0;
    color: #1F2A3E;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}
/* --- TOAST --- */

.toast-notif {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #2D3748;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 13px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease, fadeOut 3s 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notif.success {
    background: var(--success-green);
}

.toast-notif.error {
    background: var(--danger-red);
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        transform: translateX(50px);
    }
}
/* Spinner */

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
 