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

body {
    font-family: 'Segoe UI', Poppins, Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header / Footer */
.site-header {
    background: #1f2937;
    color: #fff;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}
.logo {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}
.site-footer {
    text-align: center;
    color: #888;
    padding: 30px 0;
    font-size: 13px;
}

h1 { margin-bottom: 10px; }
h2 { margin: 25px 0 10px; }

.muted { color: #666; }
.small { font-size: 13px; }
.required { color: #ef4444; }

/* Buttons */
.btn {
    padding: 10px 20px;
    margin: 5px 5px 5px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-primary { background: #1f2937; color: #fff; }
.btn-secondary { background: #e5e7eb; color: #1f2937; }
.btn-success { background: #10b981; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; font-size: 16px; }

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
.badge.pending { background: #fbbf24; color: #78350f; }
.badge.approved { background: #10b981; color: #fff; }
.badge.rejected { background: #ef4444; color: #fff; }

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    border-bottom: 2px solid #e5e7eb;
}
.tab {
    padding: 10px 16px;
    text-decoration: none;
    color: #666;
    font-weight: bold;
    border-bottom: 3px solid transparent;
}
.tab.active {
    color: #1f2937;
    border-bottom-color: #1f2937;
}

/* Application cards */
.application-card {
    background: #fff;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.application-card-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gallery */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 15px 0;
}
.portfolio-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.ktp-viewer img {
    max-width: 500px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Forms */
.form-group {
    margin: 15px 0;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.actions select { width: auto; display: inline-block; margin-right: 8px; }

.info-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-danger { background: #fee2e2; color: #991b1b; }

.status-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
}
.auth-box h1 { text-align: center; }
.auth-box .muted { text-align: center; margin-bottom: 20px; }

@media (max-width: 600px) {
    .application-card { flex-direction: column; align-items: flex-start; }
}
