/* --- Global Styles --- */
:root {
    --bg-color: #e0e5ec;
    --primary-gradient: linear-gradient(145deg, #5b86e5, #36d1dc);
    --success-gradient: linear-gradient(145deg, #28a745, #218838);
    --danger-gradient: linear-gradient(145deg, #ff4b2b, #ff416c);
    --white: #ffffff;
    --shadow-dark: #a3b1c6;
    --shadow-light: #ffffff;
}

body {
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    color: #444;
    overflow-x: hidden;
}

/* --- Wrapper & Layout --- */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* --- 3D Sidebar Styles --- */
#sidebar {
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-color);
    min-height: 100vh;
    transition: all 0.3s;
    padding: 20px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    margin-bottom: 30px;
    text-align: center;
}

#sidebar ul li {
    margin-bottom: 15px;
}

#sidebar ul li a {
    padding: 12px 20px;
    display: block;
    border-radius: 15px;
    color: #555;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    background: var(--bg-color);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

/* Active Highlight Style (Pressed Inset Effect) */
#sidebar ul li.active-link a {
    color: #4e73df;
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    transform: scale(0.98);
}

#sidebar ul li a:hover {
    color: #36d1dc;
    transform: translateY(-3px);
}

/* --- 3D Cards & Buttons --- */
.card-3d {
    background: var(--bg-color);
    border-radius: 25px;
    border: none;
    padding: 20px;
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    transition: 0.3s;
}

.card-3d:hover {
    transform: translateY(-5px);
}

/* Colorful Loan Buttons (3D Glassmorphism) */
.btn-personal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
}

.btn-business {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white !important;
    border: none;
}

.btn-lap {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    color: white !important;
    border: none;
}

/* --- Form Elements --- */
.form-control {
    background: var(--bg-color);
    border: none;
    border-radius: 12px;
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    padding: 12px;
    color: #444;
}

.form-control:focus {
    background: var(--bg-color);
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
    outline: none;
}

/* --- Utility --- */
.badge-3d {
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    border-radius: 10px;
    padding: 8px 12px;
}

.btn-primary-3d {
    background: var(--bg-color);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    border: none;
    border-radius: 15px;
    padding: 10px 25px;
    font-weight: bold;
    color: #4e73df;
    transition: 0.2s;
}

.btn-primary-3d:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -280px;
        position: fixed;
        z-index: 999;
    }

    #sidebar.active {
        margin-left: 0;
    }

    .wrapper {
        display: block;
    }
}
/* --- Dashboard Specific 3D Styling --- */
.stat-card {
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
}

/* 3D Border Accents */
.border-top-blue {
    border-top: 5px solid #4e73df !important;
}

.border-top-green {
    border-top: 5px solid #1cc88a !important;
}

.border-top-yellow {
    border-top: 5px solid #f6c23e !important;
}

.border-top-red {
    border-top: 5px solid #e74a3b !important;
}

/* Icon Shapes with Soft Colors */
.icon-shape {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.bg-blue-light {
    background: #e8f0fe;
    color: #4e73df;
}

.bg-green-light {
    background: #e6fcf5;
    color: #1cc88a;
}

.bg-yellow-light {
    background: #fff9db;
    color: #f6c23e;
}

.bg-red-light {
    background: #fff5f5;
    color: #e74a3b;
}

/* Table 3D Styling */
.custom-table thead th {
    border: none;
    color: #888;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.custom-table tbody tr {
    background: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    transition: 0.3s;
}

.custom-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.05);
}

.type-pill {
    background: #f1f3f9;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-action {
    color: #4e73df;
    background: #f8f9fc;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff;
    text-decoration: none;
}