/* Premium CSS Design System - SAKIP Sumsel Client Page */

:root {
    --primary-color: #0b2240;      /* Deep Navy Royal Blue */
    --primary-light: #163660;     /* Medium Slate Blue */
    --accent-color: #d4af37;      /* Noble Gold */
    --accent-hover: #b89527;      /* Darker Gold */
    --body-bg: #f8fafc;           /* Light Off-White Background */
    --text-main: #1e293b;         /* Dark Slate Slate Text */
    --text-muted: #64748b;        /* Cool Gray Text */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-title {
    font-family: var(--font-title);
    font-weight: 700;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #07162c 0%, #112d53 50%, #1c487f 100%);
    padding: 8rem 0 9rem 0;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: slow-rotate 40s linear infinite;
}

@keyframes slow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff 50%, #f3e5ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Modern Glowing Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c49e2f 100%);
    color: #0b2240 !important;
    font-weight: 700;
    font-family: var(--font-title);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e5be49 0%, var(--accent-color) 100%);
}

.btn-outline-white {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-family: var(--font-title);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Floating Statistics Banner */
.stats-banner {
    margin-top: -4.5rem;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.stat-item {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1rem;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.25rem;
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* 4 Pillars Section */
.pillar-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 54, 96, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 34, 64, 0.08);
    border-color: rgba(22, 54, 96, 0.15);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(22, 54, 96, 0.08) 0%, rgba(22, 54, 96, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.pillar-icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
    background: var(--primary-color);
    transform: scale(1.05);
}

.pillar-card:hover .pillar-icon-box i {
    color: var(--accent-color);
}

/* Glassy Navbar Customization */
.custom-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 54, 96, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.custom-navbar .nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--primary-color) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
    background: rgba(22, 54, 96, 0.05);
    color: var(--primary-color) !important;
}

.custom-navbar .nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(22, 54, 96, 0.1);
}

.navbar-brand-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--primary-color);
}

.btn-nav-login {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(11, 34, 64, 0.15);
}

.btn-nav-login:hover {
    background-color: var(--primary-light) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(11, 34, 64, 0.25);
}

.btn-nav-login:focus,
.btn-nav-login:active,
.btn-nav-login.active {
    background-color: var(--primary-light) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(11, 34, 64, 0.25) !important;
}

/* Premium Footer */
.premium-footer {
    background: #071324;
    color: #e2e8f0;
    border-top: 4px solid var(--accent-color);
}

.footer-title {
    color: white;
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stat-pill span {
    color: #94a3b8;
}

.stat-pill strong {
    color: var(--accent-color);
}

/* Modern Card Layouts for Livewire Pages */
.card-modern {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

/* Floating Pagination widget styles */
.pagination-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 16px;
    animation: fadeIn 0.4s ease-out;
}

/* Modern CSS Sticky Table Header Container */
.table-responsive {
    overflow-x: auto !important;
    position: relative;
}

.card-body {
    overflow: visible !important;
}

.sticky-table-header-wrapper {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid #dee2e6;
    transition: opacity 0.2s ease;
}

.sticky-table-header-wrapper table {
    border-bottom: none !important;
}

.sticky-table-header-wrapper thead th {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    vertical-align: middle !important;
    text-align: center !important;
}

/* =============================================
   Renstra Hierarchy Row Colors
   ============================================= */

/* RPJMD Levels */
.text-info-3, tr.text-info-3 td, tr.text-info-3 strong {
    color: #1e3a8a !important;
}
tr.text-info-3 {
    font-weight: 600;
}

.text-info-2, tr.text-info-2 td, tr.text-info-2 strong {
    color: #2563eb !important;
}
tr.text-info-2 {
    font-weight: 600;
}

tr.text-info, tr.text-info td, tr.text-info strong, tr.text-info button i {
    color: #0e7490 !important;
}
tr.text-info {
    font-weight: 600;
}

tr.text-warning, tr.text-warning td, tr.text-warning strong, tr.text-warning button i {
    color: #856404 !important;
}
tr.text-warning {
    font-weight: 600;
}

/* Renstra Levels */
.text-color-1, tr.text-color-1 td, tr.text-color-1 strong {
    color: #c62828 !important;
}
tr.text-color-1 {
    background-color: #fff5f5 !important;
}

.text-color-2, tr.text-color-2 td, tr.text-color-2 strong {
    color: #8e24aa !important;
}
tr.text-color-2 {
    background-color: #fdf4ff !important;
}

.text-color-3, tr.text-color-3 td, tr.text-color-3 strong {
    color: #795548 !important;
}
tr.text-color-3 {
    background-color: #fdf8f6 !important;
}

.text-color-4, tr.text-color-4 td, tr.text-color-4 strong {
    color: #2e7d32 !important;
}
tr.text-color-4 {
    background-color: #f1f8e9 !important;
}

.text-color-5, tr.text-color-5 td, tr.text-color-5 strong {
    color: #e65100 !important;
}
tr.text-color-5 {
    background-color: #fff8f0 !important;
}