* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #1A4D8C 0%, #2B6EB0 50%, #333333 100%);
    min-height: 100vh;
}

/* Style untuk surat */
#print-area {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #000;
}

#print-area table {
    border-collapse: collapse;
    width: 100%;
}

#print-area th, #print-area td {
    border: 1px solid #000;
    padding: 8px;
}

#print-area th {
    background-color: #f0f0f0;
    font-weight: bold;
}

@media print {
    body * {
        visibility: hidden;
    }
    #suratContent, #suratContent * {
        visibility: visible;
    }
    #suratContent {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}
/* Style untuk print */
@media print {
    @page {
        size: A4;
        margin: 2cm;
    }
    
    body * {
        visibility: hidden;
    }
    
    #suratContent, #suratContent * {
        visibility: visible;
    }
    
    #suratContent {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
    }
    
    .page-break {
        page-break-after: always;
    }
    
    /* Sembunyikan tombol saat print */
    .form-actions, .btn-cancel, .btn-submit, .btn-add, .close {
        display: none !important;
    }
}
/* Warna Utama dari Logo */
:root {
    --biru-tua: #1A4D8C;
    --biru-muda: #2B6EB0;
    --abu-tua: #333333;
    --biru-gelap: #0D2B4F;
    --biru-terang: #4A90E2;
    --abu-muda: #666666;
    --putih: #FFFFFF;
    --putih-krem: #F5F5F5;
}

/* Glassmorphism Effect dengan warna logo */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 77, 140, 0.1);
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at 10% 20%, var(--biru-tua) 0%, var(--biru-muda) 50%, var(--abu-tua) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(26, 77, 140, 0.3), 0 0 0 1px rgba(43, 110, 176, 0.1) inset;
    width: 100%;
    max-width: 450px;
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
    border-top: 5px solid var(--biru-tua);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo {
    display: block;
    margin: 0 auto 30px;
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(26, 77, 140, 0.2));
}

.login-box h2 {
    text-align: center;
    color: var(--biru-tua);
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.login-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--biru-tua), var(--biru-muda), var(--abu-tua));
    border-radius: 3px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--biru-tua);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: var(--abu-tua);
}

.form-group input:focus {
    outline: none;
    border-color: var(--biru-muda);
    box-shadow: 0 0 0 4px rgba(43, 110, 176, 0.1);
    transform: scale(1.02);
}
/* Tambahkan di bagian style */
.input-error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2;
}

.error-text {
    color: #ef4444;
    font-size: 11px;
    margin-top: 5px;
    display: block;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--biru-tua) 0%, var(--biru-muda) 50%, var(--abu-tua) 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px var(--biru-tua);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn-login:active::after {
    transform: translate(-50%, -50%) scale(1);
}

.login-info {
    margin-top: 25px;
    text-align: center;
    color: var(--abu-muda);
    font-size: 14px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(26, 77, 140, 0.05), rgba(43, 110, 176, 0.05));
    border-radius: 12px;
    border: 1px dashed var(--biru-muda);
}

/* Navbar dengan warna logo */
.navbar {
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda));
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(26, 77, 140, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-menu {
    display: flex;
    gap: 10px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.navbar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.navbar-menu a:hover::before {
    left: 0;
}

.navbar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-menu a.active {
    background: var(--abu-tua);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 8px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--abu-tua);
    color: white;
    border-color: var(--abu-tua);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.container h2 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(26, 77, 140, 0.3);
}

/* Modern Cards dengan warna logo */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(26, 77, 140, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(43, 110, 176, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--biru-tua), var(--biru-muda), var(--abu-tua));
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(26, 77, 140, 0.25);
}

.stat-card h3 {
    color: var(--biru-tua);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Chart Container */
.chart-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(26, 77, 140, 0.15);
    margin-bottom: 40px;
    border: 1px solid rgba(43, 110, 176, 0.1);
}

.chart-container h3 {
    color: var(--biru-tua);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-box {
    min-height: 300px;
}

/* Modern Table dengan warna logo */
.table-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(26, 77, 140, 0.15);
    overflow-x: auto;
    border: 1px solid rgba(43, 110, 176, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.table-header h2, .table-header h3 {
    color: var(--biru-tua);
    font-size: 24px;
    font-weight: 700;
}

.btn-add {
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda));
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px var(--biru-tua);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--biru-tua);
}

.search-box {
    padding: 14px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    width: 300px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--biru-muda);
    box-shadow: 0 0 0 4px rgba(43, 110, 176, 0.1);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

th {
    background: linear-gradient(135deg, rgba(26, 77, 140, 0.05), rgba(43, 110, 176, 0.05));
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--biru-tua);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px 12px 0 0;
}

td {
    padding: 18px 16px;
    background: white;
    border-bottom: 1px solid #e0e7ff;
    color: var(--abu-tua);
}

tr {
    transition: all 0.3s ease;
    border-radius: 12px;
}

tr:hover td {
    background: linear-gradient(135deg, rgba(26, 77, 140, 0.02), rgba(43, 110, 176, 0.02));
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(26, 77, 140, 0.1);
}

/* Modern Buttons dengan warna logo */
.btn-edit, .btn-delete {
    padding: 8px 16px;
    margin: 0 5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit {
    background: linear-gradient(135deg, var(--biru-muda), var(--biru-terang));
    color: white;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--biru-muda);
}

.btn-delete {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px #dc2626;
}

/* Modern Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 140, 0.3);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(26, 77, 140, 0.3);
    animation: slideUp 0.4s ease;
    border-top: 5px solid var(--biru-tua);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: var(--biru-muda);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #dc2626;
    background: #fee2e2;
    transform: rotate(90deg);
}

/* Modern Form dengan warna logo */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--abu-tua);
}

.form-group select:focus {
    outline: none;
    border-color: var(--biru-muda);
    box-shadow: 0 0 0 4px rgba(43, 110, 176, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda), var(--abu-tua));
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px var(--biru-tua);
}

/* Divisi Stats Table */
#divisiStats tr td {
    padding: 12px;
}

#divisiStats tr td:first-child {
    font-weight: 600;
    color: var(--biru-tua);
}

#divisiStats tr td:nth-child(3) div {
    background: linear-gradient(90deg, var(--biru-tua), var(--biru-muda), var(--abu-tua));
    height: 8px;
    border-radius: 20px;
    transition: width 1s ease;
}

/* Loading Animation dengan warna logo */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(26, 77, 140, 0.1);
    border-radius: 50%;
    border-top-color: var(--biru-tua);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar dengan warna logo */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--biru-muda), var(--abu-tua));
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .modal-content {
        margin: 20px;
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .container h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .btn-add {
        width: 100%;
    }
}

/* Tambahan efek untuk logo */
.navbar h1::before {
    content: 'PT. WIRATAMA';
    font-size: 12px;
    display: block;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

.navbar h1::after {
    content: 'GLOBALINDO JAYA';
    font-size: 10px;
    display: block;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
}
/* Karyawan Grid View */
.karyawan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.karyawan-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 77, 140, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(43, 110, 176, 0.1);
}

.karyawan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 77, 140, 0.2);
}

.card-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.karyawan-card:hover .card-photo img {
    transform: scale(1.1);
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h4 {
    color: var(--biru-tua);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-divisi {
    color: var(--biru-muda);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-jabatan {
    color: var(--abu-muda);
    font-size: 13px;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.karyawan-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Large */
.modal-lg {
    max-width: 800px !important;
}

.modal-detail {
    max-width: 600px !important;
}

/* Form Sections */
.form-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    color: var(--biru-tua);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--biru-muda);
}

.form-section h3 i {
    margin-right: 8px;
    color: var(--biru-muda);
}

/* Photo Upload */
.photo-upload {
    text-align: center;
    padding: 15px;
    border: 2px dashed var(--biru-muda);
    border-radius: 15px;
    background: #f8fafc;
}

.photo-upload.small {
    max-width: 150px;
}

.photo-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--biru-tua);
    box-shadow: 0 5px 15px rgba(26, 77, 140, 0.2);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload.small .photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.photo-upload input[type="file"] {
    margin-top: 10px;
    font-size: 12px;
}

.form-text {
    display: block;
    color: var(--abu-muda);
    font-size: 11px;
    margin-top: 5px;
}

/* Software Fields */
.software-field {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.software-field .software-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.software-field .software-header h4 {
    color: var(--biru-tua);
    font-size: 14px;
    font-weight: 600;
}

.btn-remove-software {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remove-software:hover {
    background: #fee2e2;
    transform: rotate(90deg);
}

.btn-add-software {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px dashed var(--biru-muda);
    border-radius: 12px;
    color: var(--biru-muda);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-add-software:hover {
    background: rgba(43, 110, 176, 0.05);
    border-color: var(--biru-tua);
    color: var(--biru-tua);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    background: #e2e8f0;
    border: none;
    border-radius: 12px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #cbd5e0;
}

.btn-submit {
    flex: 2;
    padding: 14px;
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--biru-tua);
}

/* Detail Modal Styles */
.detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.detail-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--biru-tua);
    box-shadow: 0 10px 20px rgba(26, 77, 140, 0.2);
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-title {
    flex: 1;
}

.detail-title h2 {
    color: var(--biru-tua);
    font-size: 24px;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge.it-system-officer {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.badge.hrd {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge.gm-production {
    background: linear-gradient(135deg, #10b981, #059669);
}

.detail-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-section h3 {
    color: var(--biru-tua);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--biru-muda);
}

.detail-section h3 i {
    margin-right: 8px;
    color: var(--biru-muda);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    background: white;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detail-item label {
    display: block;
    color: var(--abu-muda);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-item p {
    color: var(--biru-tua);
    font-weight: 500;
    font-size: 14px;
}

.detail-item code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--biru-tua);
}

/* Laptop Detail */
.laptop-detail {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px;
}

.laptop-photo {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--biru-muda);
}

.laptop-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laptop-info {
    flex: 1;
}

/* Software List */
.software-list {
    display: grid;
    gap: 15px;
}

.software-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.software-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.software-header i {
    color: var(--biru-muda);
    font-size: 18px;
}

.software-header strong {
    color: var(--biru-tua);
    font-size: 15px;
}

.software-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Password Toggle */
.password-mask {
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--abu-tua);
}

.toggle-password {
    margin-left: 10px;
    cursor: pointer;
    color: var(--biru-muda);
}

.toggle-password:hover {
    color: var(--biru-tua);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification i {
    margin-right: 10px;
    font-size: 18px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .laptop-detail {
        flex-direction: column;
    }
    
    .laptop-photo {
        width: 100%;
        height: 200px;
    }
    
    .software-details {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 50px;
    color: var(--biru-muda);
    font-size: 16px;
}

.loading-spinner::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--biru-tua);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 50px;
    color: #ef4444;
    background: #fee2e2;
    border-radius: 15px;
    margin: 20px;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
}

.btn-retry {
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--biru-tua);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.btn-retry:hover {
    background: var(--biru-muda);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--abu-muda);
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Card Software Count */
.card-software-count {
    font-size: 12px;
    color: var(--abu-muda);
    margin: 10px 0;
}

.card-software-count i {
    margin-right: 5px;
    color: var(--biru-muda);
}

/* No Data */
.no-data {
    text-align: center;
    color: var(--abu-muda);
    padding: 20px;
    font-style: italic;
}