* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
    position: relative;
    color: #e2e8f0;
}

/* Background Elements */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #0ea5e9;
    border-radius: 50%;
    bottom: -50px;
    right: -100px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    z-index: 10;
    position: relative;
    transition: transform 0.3s ease;
}

.login-container {
    max-width: 400px; /* Lebih kecil untuk halaman login */
    padding: 2.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.icon-pulse {
    width: 16px;
    height: 16px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

h1 span {
    color: #38bdf8;
}

p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Custom File Upload */
.file-drop-area {
    position: relative;
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.4);
    transition: all 0.3s ease;
}

.file-drop-area:hover, .file-drop-area.dragover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.file-drop-area .icon {
    font-size: 2rem;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
    text-align: center;
}

.file-drop-area input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop-area.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.file-drop-area.success .icon {
    content: "✅";
}

/* Logout Button */
.logout-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Button */
.run-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6);
}

.run-btn:active {
    transform: translateY(0);
}

.run-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
    display: inline-block;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Alert */
.status-alert {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s forwards;
}

.status-alert.error {
    background: #ef4444;
}

@keyframes slideUp {
    to { bottom: 20px; }
}

/* Tabs Navigation */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 6px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #e2e8f0;
}

.tab-btn.active {
    background: rgba(79, 70, 229, 0.5);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Report Form Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

.custom-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.custom-input option {
    background: #1e293b;
    color: #e2e8f0;
}

.custom-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.pl-icon {
    padding-left: 2.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-excel {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-excel:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-csv {
    flex: 1;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-csv:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.timer-text {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 10px;
}

/* =====================
   Download Confirm Modal
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.modal-file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    word-break: break-all;
}

.modal-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.modal-tip i {
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.modal-btn-cancel {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-btn-cancel:hover {
    background: rgba(100, 116, 139, 0.5);
    color: #e2e8f0;
}

.modal-btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.modal-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

