/* 
   RUMREN LEGAL SYSTEM - PREMIUM MUSLIM PRO STYLE
   Standardized layout using dashboard-wrapper and premium cards
*/

/* --- GLOBAL SINKRONISASI --- */
html,
body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    overflow-x: clip !important;
    /* Replacement for hidden to avoid breaking sticky */
}

/* --- REUSABLE COMPONENTS --- */
.dashboard-wrapper {
    padding: 10px 12px 100px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- PREMIUM WELCOME BANNER (Legal Edition) --- */
.welcome-banner {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.75) 0%, rgba(127, 29, 29, 0.85) 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /* Align with viewport top on mobile */
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
}

.welcome-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shine-sweep 6s infinite ease-in-out;
    z-index: 1;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* --- STAT CARD PREMIUM (Navigation Edition) --- */
.stat-card-premium {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    height: 100%;
    color: white !important;
    text-decoration: none !important;
}

.stat-card-premium:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.stat-icon-box {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(220, 38, 38, 0.15);
    color: var(--primary-light);
}

.stat-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stat-label-new {
    font-size: 0.55rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-value-new {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
    color: white;
}

/* --- LEGAL DOCUMENT CARD (Full Width) --- */
.legal-doc-card-premium {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .legal-doc-card-premium {
        padding: 40px;
    }
}

.doc-section-title {
    color: white;
    font-weight: 800;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    padding-left: 12px;
}

/* Red Accent for TOS */
.tos-theme .doc-section-title {
    border-left: 4px solid var(--primary-light);
}

.tos-theme .doc-section-number {
    color: var(--primary-light);
}

/* Green Accent for Privacy */
.privacy-theme .doc-section-title {
    border-left: 4px solid #10b981;
}

.privacy-theme .doc-section-number {
    color: #10b981;
}

/* Amber Accent for Disclaimers */
.disclaimers-theme .doc-section-title {
    border-left: 4px solid #f59e0b;
}

.disclaimers-theme .doc-section-number {
    color: #f59e0b;
}

/* Play Store Accent for Mobile App */
.playstore-theme .doc-section-title {
    border-left: 4px solid #3b82f6;
}

.playstore-theme .doc-section-number {
    color: #3b82f6;
}

.doc-content,
.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    line-height: 1.8;
}

.legal-sub-sections .smallest,
.smallest {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}



/* --- TYPOGRAPHY REDESIGN --- */
.legal-title-premium {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 4px;
}

.legal-subtitle-premium {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    max-width: 250px;
}

.anim-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small adjustments for mobile */
@media (max-width: 480px) {
    .welcome-banner {
        padding: 0.8rem 1rem;
    }
}