body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #f8f9fa;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1);
    border-bottom: 3px solid #1db854;
}

.header-top {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    max-height: 80px;
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 18px;
    border: 2px solid #003366;
    background: white;
    color: #003366;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #003366;
    color: white;
}

.nav-btn.active {
    background: #1db854;
    color: white;
    border-color: #1db854;
}

.nav-btn.logout {
    margin-left: auto;
    border-color: #e74c3c;
    color: #e74c3c;
}

.nav-btn.logout:hover {
    background: #e74c3c;
    color: white;
}

.user-info {
    margin-left: auto;
    color: #003366;
    font-size: 14px;
    font-weight: 500;
}

main {
    flex: 1;
    padding: 30px 20px;
}

.section {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.1);
}

.section.active {
    display: block;
}

.section h2 {
    color: #003366;
    margin-top: 0;
    border-bottom: 3px solid #1db854;
    padding-bottom: 10px;
    font-size: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #003366;
}

.form-group input[type="file"],
.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1db854;
    box-shadow: 0 0 5px rgba(29, 184, 84, 0.3);
}

.form-group small {
    display: block;
    color: #999;
    margin-top: 5px;
}

.help-text {
    display: block;
    color: #666;
    margin-top: 5px;
    font-size: 13px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
    accent-color: #1db854;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1db854 0%, #18a844 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #18a844 0%, #157a38 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 184, 84, 0.4);
}

.btn-success {
    background: #1db854;
    color: white;
}

.btn-success:hover {
    background: #18a844;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Status messages */
.status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Files List */
.files-list {
    display: grid;
    gap: 15px;
}

.file-item {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    border-left: 4px solid #1db854;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.file-name {
    font-weight: 600;
    color: #003366;
    font-size: 15px;
    margin-bottom: 8px;
}

.file-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.file-meta-item {
    display: flex;
    justify-content: space-between;
}

.file-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.file-actions button,
.file-actions a {
    padding: 6px 12px;
    font-size: 12px;
}

/* Approval List */
.approval-list {
    display: grid;
    gap: 15px;
}

.approval-item {
    border: 2px solid #fff3cd;
    padding: 20px;
    border-radius: 6px;
    background: #fffbf0;
    border-left: 4px solid #ffc107;
}

.approval-item h3 {
    margin: 0 0 10px 0;
    color: #003366;
}

.approval-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    font-size: 14px;
    margin-bottom: 15px;
}

.approval-meta-item {
    display: flex;
    flex-direction: column;
}

.approval-meta-label {
    font-weight: 600;
    color: #003366;
    margin-bottom: 3px;
}

.approval-meta-value {
    color: #333;
}

.approval-actions {
    display: flex;
    gap: 10px;
}

.approval-actions button {
    flex: 1;
}

.rejection-reason {
    margin-top: 10px;
}

.rejection-reason textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.rejection-reason textarea:focus {
    outline: none;
    border-color: #1db854;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    padding: 20px;
    text-align: center;
    color: white;
    border-top: 1px solid #002145;
}

footer p {
    margin: 5px 0;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1db854;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    header {
        padding: 15px;
    }

    .header-top {
        margin-bottom: 10px;
    }

    .logo {
        max-height: 60px;
    }

    nav {
        flex-direction: column;
        gap: 8px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .user-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    main {
        padding: 15px;
    }

    .section {
        padding: 20px;
    }

    .file-meta {
        grid-template-columns: 1fr;
    }

    .approval-actions {
        flex-direction: column;
    }

    .approval-actions button {
        width: 100%;
    }
}
