/* assets/css/style.css */

/* ====== GLOBAL ====== */
body {
    background: #0b1020;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

/* ====== LAYOUT ====== */
.rp-layout {
    display: flex;
    min-height: 100vh;
}

.rp-sidebar {
    width: 240px;
    background: #050816;
    border-right: 1px solid #111827;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}

.rp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rp-topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #111827;
    background: rgba(6, 10, 24, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.rp-content {
    padding: 24px;
}

/* ====== SIDEBAR ====== */
.rp-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #f9fafb;
}
.rp-logo span {
    color: #60a5fa;
}

.rp-sidebar-header {
    margin-bottom: 24px;
}
.rp-sidebar-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.rp-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.rp-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}
.rp-nav-item:hover {
    background: #111827;
    color: #e5e7eb;
}
.rp-nav-item.active {
    background: #111827;
    color: #f9fafb;
}

.rp-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #374151;
}
.rp-nav-item.active .rp-nav-dot {
    background: #60a5fa;
}

.rp-sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: #4b5563;
}

/* ====== TOPBAR ====== */
.rp-page-title {
    font-size: 1.1rem;
    margin: 0;
    color: #e5e7eb;
}

.rp-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rp-topbar-credits {
    text-align: right;
}
.rp-topbar-credits .rp-label {
    font-size: 0.7rem;
    color: #9ca3af;
    display: block;
}
.rp-topbar-credits .rp-amount {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ====== CARDS ====== */
.rp-card {
    background: #050816;
    border-radius: 12px;
    border: 1px solid #111827;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.rp-card-label {
    font-size: 0.85rem;
    color: #9ca3af;
}
.rp-card-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f9fafb;
    margin-top: 4px;
}
.rp-card-caption {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 6px;
}

/* Tables */
.rp-table thead th {
    border-color: #111827;
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.rp-table tbody td {
    border-color: #020617;
    font-size: 0.85rem;
}

/* ====== LOGIN PAGE ====== */
.rp-login-body {
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-login-wrapper {
    max-width: 380px;
    width: 100%;
    padding: 16px;
}

.rp-login-card {
    background: #020617;
    border-radius: 16px;
    border: 1px solid #111827;
    padding: 24px 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.75);
}

.rp-login-header {
    margin-bottom: 16px;
}
.rp-login-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Buttons */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}
.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}
.btn-outline-secondary {
    border-color: #4b5563;
    color: #e5e7eb;
}
.btn-outline-secondary:hover {
    background-color: #374151;
    border-color: #4b5563;
}

/* Responsive */
@media (max-width: 768px) {
    .rp-sidebar {
        display: none;
    }
    .rp-main {
        width: 100%;
    }
    .rp-topbar {
        padding: 0 16px;
    }
    .rp-content {
        padding: 16px;
    }
}
