/* 
 * Custom CSS for SPK Bantuan Sosial Desa Wonga Wea
 * Inspired by Light Bootstrap Dashboard
 */

/* General Styling */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
}

.card {
    border-radius: 12px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.card-header {
    padding: 20px 20px 0px 20px;
    background-color: transparent;
    border-bottom: none;
}

.card-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.card-category {
    color: #888;
    font-size: 14px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 10px 20px;
    background-color: transparent;
    border-top: 1px solid #eee;
}

.card .stats {
    color: #999;
    font-size: 12px;
}

.card .stats i {
    margin-right: 5px;
}

/* Buttons */
.btn {
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-fill {
    color: #fff !important;
}

.btn-success.btn-fill {
    background-color: #18ce0f;
    border-color: #18ce0f;
}

.btn-warning.btn-fill {
    background-color: #ffb236;
    border-color: #ffb236;
}

.btn-danger.btn-fill {
    background-color: #ff3636;
    border-color: #ff3636;
}

.btn-info.btn-fill {
    background-color: #2ca8ff;
    border-color: #2ca8ff;
}

.btn-primary.btn-fill {
    background-color: #6610f2;
    border-color: #6610f2;
}

.btn:hover, .btn:focus, .btn:active {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    padding: 15px 8px;
}

.table td {
    padding: 12px 8px;
    vertical-align: middle;
    color: #666;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered {
    border: 1px solid #eee;
}

.table-bordered td, .table-bordered th {
    border: 1px solid #eee;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.alert .close {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Forms */
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    height: auto;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #6610f2;
    box-shadow: 0 0 0 0.2rem rgba(102, 16, 242, 0.25);
}

/* Sidebar Styling */
.sidebar {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar .logo {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar .logo a.simple-text {
    font-weight: 600;
    font-size: 18px;
}

.sidebar .nav li > a {
    padding: 12px 15px;
    margin: 5px 15px;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.sidebar .nav li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.23);
}

.sidebar .nav li.active > a i, 
.sidebar .nav li.active > a p {
    color: #fff;
}

.sidebar .nav li:hover > a {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar[data-color="blue"] .nav li.active > a {
    background: #2ca8ff;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(44, 168, 255, 0.4);
}

.sidebar[data-color="purple"] .nav li.active > a {
    background: #6610f2;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(102, 16, 242, 0.4);
}

/* Navbar */
.navbar {
    padding: 10px 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #333;
}

/* Custom Dashboard Elements */
.dashboard-icon {
    font-size: 48px;
    padding: 15px;
    border-radius: 12px;
    margin-right: 15px;
    display: inline-block;
}

/* Chart colors */
.chart-area {
    min-height: 300px;
}

/* Responsive tweaks */
/* Perbaikan navbar mobile */
@media (max-width: 991px) {
    .navbar .navbar-collapse {
        position: fixed;
        display: block;
        top: 0;
        height: 100vh;
        width: 230px;
        right: 0;
        z-index: 1032;
        visibility: visible;
        background-color: #fff;
        overflow-y: visible;
        border-top: none;
        text-align: left;
        max-height: none !important;
        transform: translate3d(230px, 0, 0);
        transition: all 0.5s cubic-bezier(0.685, 0.0473, 0.346, 1);
        padding: 0;
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    }
    
    .navbar .navbar-collapse.show {
        transform: translate3d(0px, 0, 0);
    }
    
    .navbar .navbar-collapse:before {
        background: #fff;
        content: "";
        display: block;
        height: 100%;
        position: absolute;
        width: 100%;
        z-index: -1;
    }
    
    .navbar .navbar-collapse .navbar-nav {
        padding-top: 50px;
        height: 100%;
        z-index: 2;
        position: relative;
        display: flex;
        flex-direction: column;
    }
    
    .navbar .navbar-collapse .navbar-nav .nav-item {
        margin: 0;
        padding: 0;
    }
    
    .navbar .navbar-collapse .navbar-nav .nav-item .nav-link {
        color: #222;
        margin: 5px 15px;
        padding: 10px 15px;
    }
    
    .navbar .navbar-toggler-bar {
        display: block;
        position: relative;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background: #333;
    }
    
    .navbar .navbar-toggler-bar + .navbar-toggler-bar {
        margin-top: 7px;
    }
    
    .navbar-collapse.show .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        border: 0;
        box-shadow: none;
        display: block;
    }
}

/* Background overlay saat navbar mobile terbuka */
body.nav-open:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1031;
}

/* Animation */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation-name: fadeIn;
}

/* Custom styles for print */
@media print {
    .sidebar, .navbar, .no-print {
        display: none !important;
    }
    
    .main-panel {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    body {
        background-color: #fff !important;
    }
}

/* Status badges */
.status-sangat-layak {
    background-color: #18ce0f;
    color: #fff;
}

.status-layak {
    background-color: #2ca8ff;
    color: #fff;
}

.status-cukup-layak {
    background-color: #ffb236;
    color: #fff;
}

.status-kurang-layak {
    background-color: #ff3636;
    color: #fff;
}

.status-tidak-layak {
    background-color: #6c757d;
    color: #fff;
}

/* Login & Register Pages */
.auth-page {
    background: linear-gradient(to right, #3498db, #8e44ad);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.auth-header {
    background: linear-gradient(to right, #3498db, #8e44ad);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.auth-body {
    padding: 30px;
    background-color: #fff;
}