* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* CRITICAL FIX: Added hidden class */
.hidden {
    display: none !important;
}

/* Login & Register Container */
.auth-container {
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    min-height: 650px;
    max-height: 90vh;
}

.hero-section {
    flex: 1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.hero-text {
    text-align: center;
    color: #2c3e50;
}

.hero-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 16px;
    color: #7f8c8d;
}

.form-section {
    flex: 1;
    background: #2c3e50;
    padding: 30px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}

.logo-section {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 20px;
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.logo-section h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.logo-section p {
    font-size: 15px;
    color: #bdc3c7;
    font-weight: 300;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ecf0f1;
}

.input-wrapper {
    position: relative;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    background: white;
    color: #2c3e50;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%232c3e50' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.text-center {
    text-align: center;
    margin-top: 25px;
}

.text-center a {
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    cursor: pointer;
}

.text-center a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-container {
    max-width: 1400px;
    width: 100%;
    background: #ecf0f1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    min-height: 85vh;
    display: flex;
}

.sidebar {
    width: 280px;
    background: #2c3e50;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #34495e;
}

.sidebar-logo h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.sidebar-logo p {
    font-size: 12px;
    color: #bdc3c7;
}

.nav-menu {
    flex: 1;
}

.nav-item {
    padding: 18px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #bdc3c7;
    font-size: 16px;
}

.nav-item:hover {
    background: #34495e;
    color: white;
}

.nav-item.active {
    background: #3498db;
    color: white;
}

.nav-icon {
    font-size: 24px;
    width: 30px;
}

.logout-btn {
    margin-top: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: white;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-bar {
    background: #ecf0f1;
    padding: 14px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar input {
    border: none;
    background: none;
    flex: 1;
    font-size: 15px;
    outline: none;
    color: #2c3e50;
}

.search-icon {
    font-size: 20px;
    color: #7f8c8d;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.notification-btn:hover {
    background: #ecf0f1;
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s;
}

.user-info:hover {
    background: #ecf0f1;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.user-details h3 {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 2px;
}

.user-details p {
    font-size: 12px;
    color: #7f8c8d;
}

.content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 35px;
    border-radius: 20px;
    color: white;
    margin-bottom: 35px;
}

.welcome-section h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.welcome-section p {
    font-size: 16px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 24px;
    color: #2c3e50;
}

.view-all-link {
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.view-all-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.report-card {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.report-card h4 {
    font-size: 17px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.report-id {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.report-date {
    font-size: 13px;
    color: #95a5a6;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-inprocess {
    background: #fff3cd;
    color: #856404;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-finished {
    background: #d4edda;
    color: #155724;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: none;
}

.success-message.show {
    display: block;
}

/* ===================================================================
   FILTER TABS - TAMBAHAN BARU
   =================================================================== */
.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 28px;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #7f8c8d;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-tab:hover {
    background: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* ===================================================================
   CREATE REPORT PAGE - TAMBAHAN BARU
   =================================================================== */
.form-card {
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.file-upload {
    border: 2px dashed #bdc3c7;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.file-upload:hover {
    border-color: #3498db;
    background: #e8f4f8;
    transform: translateY(-2px);
}

.file-upload-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

/* Responsive untuk create report page */
@media (max-width: 768px) {
    .form-card {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .file-upload {
        padding: 30px 20px;
    }

    .file-upload-icon {
        font-size: 40px;
    }
}

/* ===================================================================
   PROFILE PAGE - TAMBAHAN BARU
   =================================================================== */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    padding: 40px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.profile-card h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.profile-card p {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.profile-stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.menu-card {
    background: white;
    padding: 25px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.menu-card-icon {
    font-size: 36px;
    min-width: 50px;
    text-align: center;
}

.menu-card-text h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.menu-card-text p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

/* Responsive untuk profile page */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 10px;
    }

    .profile-card {
        padding: 30px 20px;
    }

    .profile-avatar-large {
        width: 120px;
        height: 120px;
        font-size: 60px;
    }

    .profile-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .profile-stat {
        flex: 1;
        min-width: 80px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .menu-card {
        padding: 20px;
    }

    .menu-card-icon {
        font-size: 32px;
        min-width: 40px;
    }
}

/* ===================================================================
   REPORT DETAIL PAGE - TAMBAHAN BARU
   =================================================================== */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    background: white;
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.detail-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0;
}

.back-btn {
    padding: 12px 24px;
    background: #ecf0f1;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #bdc3c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-row {
    margin-bottom: 25px;
}

.detail-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.6;
}

.report-image-preview {
    width: 100%;
    height: 300px;
    background: #ecf0f1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-top: 10px;
    border: 2px dashed #bdc3c7;
    transition: all 0.3s;
}

.report-image-preview:hover {
    background: #e0e4e8;
    border-color: #95a5a6;
}

/* Status Timeline */
.status-timeline {
    margin-top: 15px;
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 8px;
    bottom: -10px;
    width: 2px;
    background: #ecf0f1;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #ecf0f1;
}

.timeline-dot.status-inprocess {
    background: #f39c12;
}

.timeline-dot.status-received {
    background: #3498db;
}

.timeline-dot.status-finished {
    background: #27ae60;
}

.timeline-dot.status-rejected {
    background: #e74c3c;
}

.timeline-content h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    line-height: 1.5;
}

.timeline-date {
    font-size: 12px;
    color: #95a5a6;
    font-style: italic;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Responsive untuk detail page */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-header h2 {
        font-size: 22px;
    }

    .back-btn {
        width: 100%;
    }

    .detail-card {
        padding: 25px 20px;
    }

    .detail-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .report-image-preview {
        height: 200px;
        font-size: 60px;
    }
}

