/* 
 * style.css 
 * File CSS utama untuk aplikasi Manajemen Pengajuan Proposal
 */

/* ====== GENERAL STYLES ====== */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fc;
}

.text-success {
    color: #1cc88a !important;
}

.bg-light {
    background-color: #f8f9fc !important;
}

/* ====== FRONTEND STYLES ====== */

/* Hero section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-header.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 40px;
}

/* Form section */
.form-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.features-section {
    padding: 60px 0;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #0d6efd;
}

footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

/* Login styles */
.login-container {
    max-width: 450px;
    margin: auto;
    padding: 20px;
}

.login-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.login-header {
    background-color: #0d6efd;
    color: white;
    padding: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
}

.login-body {
    padding: 30px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: white;
}

/* Status page */
.header-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-header.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.status-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ====== ADMIN STYLES ====== */

/* Sidebar */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #4e73df;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    background-size: cover;
    color: white;
    transition: all 0.2s;
    position: fixed;
    z-index: 1040;
    height: 100%;
}

.sidebar-brand {
    height: 70px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 24px;
    text-align: center;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Content wrapper */
#content-wrapper {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

/* Topbar */
.topbar {
    height: 70px;
    background-color: white;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    z-index: 1030;
    position: relative;
}

.topbar-divider {
    width: 0;
    border-right: 1px solid #e3e6f0;
    height: calc(70px - 2rem);
    margin: auto 1rem;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
}

.card-header h6 {
    font-weight: 700;
    color: #4e73df;
}

/* Table styles */
.table-bordered {
    border: 1px solid #e3e6f0;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Scroll to top button */
.scroll-to-top {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0d6efd;
    box-shadow: 0 0 0 4px #fff;
    z-index: 1;
}

.timeline-content {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Utility classes */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.35rem;
}

.bg-primary {
    background-color: #4e73df !important;
}

.bg-success {
    background-color: #1cc88a !important;
}

.bg-info {
    background-color: #36b9cc !important;
}

.bg-warning {
    background-color: #f6c23e !important;
}

.bg-danger {
    background-color: #e74a3b !important;
}

.bg-secondary {
    background-color: #858796 !important;
}

/* Button styling */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-info {
    color: #fff;
    background-color: #36b9cc;
    border-color: #36b9cc;
}

.btn-primary {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
}

/* Detail bantuan styling */
.assistance-tunai .input-group-text {
    background-color: #4e73df;
    color: white;
    font-weight: bold;
}

.assistance-tunai .input-group {
    max-width: 300px;
}

.assistance-tunai input {
    border-color: #d1d3e2;
}

.assistance-barang textarea {
    border-color: #d1d3e2;
    resize: vertical;
}

.detail-bantuan {
    background-color: #f8f9fc;
    border-left: 3px solid #4e73df;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 0 4px 4px 0;
}

.detail-bantuan .bantuan-label {
    font-weight: bold;
    color: #4e73df;
    font-size: 0.9rem;
}

.nominal-bantuan {
    font-weight: bold;
    color: #1cc88a;
}

.detail-barang-content {
    white-space: pre-line;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .sidebar.toggled {
        width: 250px;
    }
    
    #content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .content-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1030;
    }
    
    .content-overlay.show {
        display: block;
    }
}