/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Card umum */
.card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(18px);
}

/* LOGIN */
.login-card {
    max-width: 380px;
    width: 100%;
    margin: auto;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.app-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #e5e7eb;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background-color: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
    background-color: rgba(15, 23, 42, 1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    border: none;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.btn-ghost {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.9);
}
.btn-warning {
    background: linear-gradient(135deg, #fb923c, #f97316); /* orange */
    color: #fff7ed;
    box-shadow: 0 10px 20px rgba(248, 148, 54, 0.35);
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(248, 148, 54, 0.45);
}

.btn-warning:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(248, 148, 54, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c); /* merah */
    color: #fee2e2;
    box-shadow: 0 10px 20px rgba(248, 113, 113, 0.35);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(248, 113, 113, 0.45);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(248, 113, 113, 0.35);
}

/* Alert */
.alert {
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.7);
}

/* DASHBOARD */
.dashboard-card {
    width: 100%;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 8px;
}

.dashboard-left h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.dashboard-left p {
    font-size: 13px;
    color: #9ca3af;
}

/* User info bar */
.user-info {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    color: #e5e7eb;
}

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
}

.filter-bar select {
    max-width: 200px;
}

.filter-bar .btn {
    padding-inline: 13px;
}

/* Table */
.table-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.45), transparent 55%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.35), transparent 60%),
                rgba(15, 23, 42, 0.9);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead {
    background: rgba(15, 23, 42, 0.9);
}

th,
td {
    padding: 10px 12px;
    text-align: left;
}

th {
    font-weight: 600;
    color: #9ca3af;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.85);
}

tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.98);
}

tbody tr:hover {
    background: rgba(30, 64, 175, 0.55);
}

/* Status badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-requested {
    background: rgba(148, 163, 184, 0.4);
    color: #f9fafb;
}

.status-under-review {
    background: rgba(251, 146, 60, 0.2);
    color: #fed7aa;
}

.status-on-process {
    background: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}

.status-rejected {
    background: rgba(248, 113, 113, 0.2);
    color: #fecaca;
}

.status-done {
    background: rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

/* Link button untuk detail */
.link-button {
    background: transparent;
    border: none;
    padding: 0;
    color: #38bdf8;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
}

.link-button:hover {
    opacity: 0.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.98);
}

.page-info {
    font-size: 12px;
    color: #9ca3af;
    margin-right: auto;
}

.page-link {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    color: #e5e7eb;
}

.page-link:hover {
    border-color: rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
}

.page-link.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    padding: 18px 20px;
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
}

.modal-body {
    font-size: 13px;
    color: #e5e7eb;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.modal-footer {
    margin-top: 14px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
    padding: 0 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .wrapper {
        margin: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    th, td {
        padding: 8px 9px;
    }
}
.klasemen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.klasemen-table th {
    background: rgba(255,255,255,0.08);
    padding: 8px;
    text-align: left;
}

.klasemen-table td {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
