/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #eef1f5;
    color: #2c3e50;
    overflow-x: hidden;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3 {
    color: #2c3e50;
    font-weight: 600;
}

h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* ================= CARD / CONTAINER ================= */
.container, .table-box, .filter-box, form {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    padding: 20px;
}

/* ================= FORM ================= */
form { max-width: 100%; }

label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 9px 12px;
    margin-top: 5px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    transition: .2s;
    font-size: 14px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,.15);
}

textarea { resize: vertical; }

/* ================= BUTTON ================= */
button, .btn, .btn-print {
    display: inline-block;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: .2s;
}

button:hover, .btn:hover, .btn-print:hover { opacity: .88; }

.btn-danger { background: linear-gradient(to right, #e74c3c, #c0392b); }
.btn-success { background: linear-gradient(to right, #27ae60, #1e8449); }
.btn-warning { background: linear-gradient(to right, #f39c12, #e67e22); }
.btn-secondary { background: linear-gradient(to right, #7f8c8d, #636e72); }
.btn-logout {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 13px;
}

a {
    text-decoration: none;
    color: #2980b9;
}

a:hover { text-decoration: underline; }

/* ================= TABLE ================= */
.table-box { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #2c3e50;
    color: white;
    padding: 11px;
    text-align: left;
    text-transform: uppercase;
    font-size: 12px;
}

table td {
    padding: 9px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    line-height: 1.5;
}

table tr:nth-child(even) { background: #f8f9fb; }
table tr:hover { background: #f1f2f6; }

/* ================= ADMIN HEADER ================= */
.admin-header {
    position: fixed;
    left: 220px;
    top: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: #fff;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

/* ===== PERBAIKAN JUDUL HEADER ADMIN ===== */
.admin-header h2 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: .4px;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 220px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #192a3a, #24394e);
    box-shadow: 4px 0 12px rgba(0,0,0,.15);
}

/* Header Sidebar */
.sidebar h3 {
    font-size: 17px;
    padding: 12px;
    color: white;
    text-align: center;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Menu */
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    font-size: 14px;
    border-radius: 6px;
    margin: 5px 10px;
    color: #ecf0f1;
    transition: all .25s ease;
}

.sidebar a:hover {
    background: linear-gradient(to right, rgba(52,152,219,.2), rgba(52,152,219,.05));
    transform: translateX(4px);
}

.sidebar a.active {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    box-shadow: inset 4px 0 0 rgba(255,255,255,.4);
    border-radius: 6px;
}

/* Icon */
.sidebar i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* ================= CONTENT ================= */
.content {
    margin-left: 220px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

/* ================= FILTER ================= */
.filter-box {
    border-left: 5px solid #3498db;
    margin-bottom: 15px;
}

/* ================= STATUS ================= */
.status-proses { color: #f39c12; font-weight: bold; }
.status-terlaksana { color: #27ae60; font-weight: bold; }
.status-kontrak { color: #f39c12; font-weight: bold; }
.status-tetap { color: #27ae60; font-weight: bold; }
.status-parttime { color: #f31212; font-weight: bold; }

/* ================= IMAGE PREVIEW ================= */
.bukti-img {
    width: 60px;
    border-radius: 4px;
    transition: .2s;
    cursor: pointer;
}

.bukti-img:hover { transform: scale(1.3); }
.bukti-link { font-size: 13px; }

/* ================= PRINT ================= */
@media print {
    .sidebar, .admin-header, form, button, .btn-print, .btn-logout {
        display: none;
    }
    .content {
        margin: 0;
    }
}

/* ======= SIDEBAR ACTIVE DISABLE ======= */
.sidebar a.disabled {
    pointer-events: none;
    opacity: 0.85;
    cursor: default;
}

/* ================= LOGIN PAGE ================= */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 50px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3d;        /* Biru gelap elegan */
    letter-spacing: 0.5px;
    margin: 8px 0 5px;
    text-transform: uppercase;
}

/* SUBTITLE */
.login-header p {
    text-align: center;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 18px;
}


.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #fcc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.login-container .form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-container .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 13px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
}

.profile-card {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.profile-foto {
    width: 220px;
    text-align: center;
}

.icon-user {
    font-size: 180px;
    color: #ccc;
}

.foto-profile {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ddd;
}

.profile-data {
    flex: 1;
}

.table-profil td {
    padding: 8px 6px;
}

.login-logo {
    display: block;
    margin: 0 auto 15px auto;
    width: 130px;
    height: auto;
    object-fit: contain;
    border-radius: 0;

    /* SHADOW MENGIKUTI BENTUK LOGO */
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.35));

    transition: transform 0.2s ease-in-out;
}

.login-logo:hover {
    transform: scale(1.03);
}



