:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #10B981;
    --secondary-hover: #059669;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    --status-cepat-bg: #D1FAE5;
    --status-cepat-text: #065F46;
    --status-standar-bg: #DBEAFE;
    --status-standar-text: #1E40AF;
    --status-lambat-bg: #FEF3C7;
    --status-lambat-text: #92400E;
    --status-tidakgerak-bg: #FEE2E2;
    --status-tidakgerak-text: #991B1B;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 2.5rem;
    min-height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-header {
    text-align: center;
}

.app-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.app-header h1 {
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    color: #1E293B;
}

.app-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.app-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .config-panel {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.card-header {
    background: #F8FAFC;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.card-header.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heading-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

.card-body.p-0 {
    padding: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #334155;
}

.input-modern, .textarea-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background: #F8FAFC;
}

.input-modern:focus, .textarea-modern:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.textarea-modern {
    height: 180px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.file-upload-wrapper {
    position: relative;
    cursor: pointer;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    border: 2px dashed #CBD5E1;
    border-radius: 0.75rem;
    background: #F8FAFC;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s;
}

.file-upload-custom i {
    font-size: 2rem;
    color: #94A3B8;
}

.file-input:hover + .file-upload-custom {
    border-color: var(--primary);
    background: #EEF2FF;
    color: var(--primary);
}

.file-input:hover + .file-upload-custom i {
    color: var(--primary);
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 100%;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    width: auto;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

.btn-secondary:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    box-shadow: none;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

th {
    background: #F1F5F9;
    font-weight: 700;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
}

td {
    color: #334155;
    font-size: 0.9rem;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background: #F8FAFC;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Status Badges */
.status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.status-cepat {
    background-color: var(--status-cepat-bg);
    color: var(--status-cepat-text);
}

.status-standar {
    background-color: var(--status-standar-bg);
    color: var(--status-standar-text);
}

.status-lambat {
    background-color: var(--status-lambat-bg);
    color: var(--status-lambat-text);
}

.status-tidakgerak {
    background-color: var(--status-tidakgerak-bg);
    color: var(--status-tidakgerak-text);
}
