/* Modern UI Customization for Layanan Mandiri Global */
:root {
    --bg-neutral: #f4f7fb;
    --surface: #ffffff;
    --dark-block: #1e3a8a;
    --accent-yellow: #fde047;
    --accent-green: #86efac;
    --accent-red: #fca5a5;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-fab: 0 12px 25px -8px rgba(30, 58, 138, 0.6);
}

body, .wrapper, .content-wrapper {
    background-color: var(--bg-neutral) !important;
}

.content-wrapper {
    background: transparent !important;
}

/* Modern Header Overrides */
.modern-header {
    background: var(--dark-block);
    color: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 30px 20px 40px 20px;
    margin: -15px -15px 15px -15px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
    text-align: center;
}
.modern-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
}
.modern-header p {
    margin-top: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* Modern Card Replacement for .box.box-solid */
.modern-card, .box.modern-card, .box.box-solid {
    background: var(--surface) !important;
    border-radius: var(--radius-md) !important;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft) !important;
    border: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.modern-card:hover, .box.box-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.05) !important;
}
.modern-card .box-header, .box.box-solid .box-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
    background: transparent;
    color: var(--text-primary);
}
.modern-card .box-title, .box.box-solid .box-title {
    font-weight: 700;
    font-size: 18px;
}
.modern-card .box-body, .box.box-solid .box-body {
    padding: 0;
}

/* DataTables Global Cards Styling */
.table-data {
    border-collapse: separate !important;
    border-spacing: 0 15px !important;
    border: none !important;
    background: transparent !important;
}
.table-data thead {
    display: none !important;
}
.table-data tbody tr {
    display: block;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 15px;
    margin-bottom: 15px;
    border: none !important;
}
.table-data tbody td {
    display: block;
    border: none !important;
    padding: 4px 0 !important;
    color: var(--text-primary);
}

/* Dashboard Menu Cards */
.menu-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.03);
}
.menu-card:hover, .menu-card:focus {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Bottom Navigation Bar */
.modern-bottom-nav {
    display: none; /* Hidden on desktop */
}

/* Modals & Components */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-soft);
}
.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-footer {
    border-top: none;
    background: var(--surface);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-soft);
}

/* Global Button Styles */
.btn {
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Responsive Hide for original layout elements */
@media (max-width: 768px) {
    .main-header, .content-header, .main-footer, .modern-hide-mobile {
        display: none !important;
    }
    .content-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body {
        padding-bottom: 90px;
    }
    
    .modern-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75px;
        background: var(--surface);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.06);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1050;
        padding: 0 10px;
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none !important;
        color: var(--text-secondary);
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        flex: 1;
    }
    .nav-item.active {
        color: var(--dark-block);
    }
    .nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
        color: rgba(100, 116, 139, 0.6);
        transition: all 0.3s ease;
    }
    .nav-item.active i {
        color: var(--dark-block);
        transform: scale(1.1);
    }

    .nav-notch-container {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 100%;
    }
    .modern-fab {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 64px;
        height: 64px;
        background: var(--dark-block);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        box-shadow: var(--shadow-fab);
        z-index: 1060;
        border: 6px solid var(--bg-neutral);
        transition: transform 0.3s;
    }
    .modern-fab i {
        color: white;
        -webkit-text-stroke: 1px white;
    }
    .modern-fab:hover, .modern-fab:focus {
        transform: translateX(-50%) scale(1.08);
        color: white;
        text-decoration: none;
    }
}
