/* * GLOBAL STYLES
 * Menggunakan pendekatan utility-first sederhana dikombinasikan dengan custom components.
 * Base: Mobile First
 */

:root {
    --primary-color: #6D28D9; /* Purple 700 */
    --primary-hover: #5B21B6;
    --secondary-color: #10B981; /* Emerald 500 */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F3F4F6;
    --white: #ffffff;
    --danger: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout Wrappers */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Navigation */
.app-header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: none; /* Hidden on mobile by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 0;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Desktop */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 2rem;
        padding: 0;
        border: none;
    }

    .mobile-toggle {
        display: none;
    }
    
    .main-content {
        padding: 2rem;
    }
}

/* Footer */
.app-footer {
    background-color: var(--white);
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: auto;
}

/* Common Components */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: white;
    border: 1px solid #d1d5db;
    color: var(--text-dark);
}

.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-input:focus, .form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -1px;
}