/* ============================================================
   FILENAME: public/css/style.css
   DESCRIPTION: Custom Stylesheet for Finance App (Modern Look)
============================================================ */

/* 1. IMPORT FONT (POPPINS) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* 2. VARIABEL WARNA (Color Palette) */
:root {
    --primary-color: #4e73df;       /* Biru Utama */
    --primary-hover: #2e59d9;       /* Biru Gelap (Hover) */
    --secondary-color: #858796;     /* Abu-abu Teks */
    --success-color: #1cc88a;       /* Hijau */
    --danger-color: #e74a3b;        /* Merah */
    --warning-color: #f6c23e;       /* Kuning */
    --light-bg: #f8f9fc;            /* Background Standar */
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* 3. SETUP BODY & BACKGROUND BLUR */
body {
    font-family: 'Poppins', sans-serif;
    color: #5a5c69;
    margin: 0;
    padding: 0;
    /* Min-height penting agar background selalu penuh */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Pseudo-element untuk Background Image dengan Efek Blur */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pastikan di belakang konten */

    /* --- GANTI GAMBAR DI SINI --- */
    /* Pastikan file 'background.jpg' ada di folder public/images/ */
    background-image: url('/images/background-login.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* EFEK BLUR (Ubah px untuk mengatur tingkat keburaman) */
    filter: blur(6px);

    /* Scale up sedikit untuk menghilangkan pinggiran putih akibat blur */
    transform: scale(1.05);
}

/* 4. CARD STYLING (Kotak Login & Konten) */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;

    /* Glassmorphism Effect (Putih Transparan) */
    background: rgba(255, 255, 255, 0.92); 
    
    /* (Opsional) Backdrop filter untuk blur tambahan di belakang kartu */
    /* backdrop-filter: blur(10px); */
}

.card-custom:hover {
    transform: translateY(-5px); /* Efek melayang halus */
}

/* 5. FORM INPUT STYLING */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #d1d3e2;
    background-color: #fcfcfc;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    border-color: var(--primary-color);
    background-color: #fff;
}

/* Label form agar lebih rapi */
.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6. BUTTON STYLING */
.btn {
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.4);
    transform: translateY(-2px);
}

/* 7. TABLE STYLING (Modern & Clean) */
.table-responsive {
    border-radius: 15px;
}

.table-custom {
    border-collapse: separate;
    border-spacing: 0 10px; /* Jarak antar baris */
    width: 100%;
}

.table-custom thead th {
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 15px;
}

.table-custom tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    border-radius: 10px;
    transition: transform 0.2s;
}

.table-custom tbody tr:hover {
    transform: scale(1.01); /* Efek zoom in dikit saat di-hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table-custom tbody td {
    border: none;
    padding: 20px;
    vertical-align: middle;
    color: #555;
}

/* Sudut membulat untuk baris tabel */
.table-custom tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.table-custom tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 8. BADGE & UTILITIES */
.badge {
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Custom badge colors dengan background soft */
.text-bg-success {
    background-color: rgba(28, 200, 138, 0.15) !important;
    color: #1cc88a !important;
}

.text-bg-danger {
    background-color: rgba(231, 74, 59, 0.15) !important;
    color: #e74a3b !important;
}

/* Link Styling */
a {
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    text-decoration: underline;
}

/* --- TAMBAHAN UNTUK HALAMAN CREATE --- */

/* Radio Button Group (Pilihan Tipe) agar terlihat seperti tombol modern */
.btn-check:checked + .btn-outline-success-custom {
    background-color: #1cc88a;
    border-color: #1cc88a;
    color: white;
    box-shadow: 0 4px 10px rgba(28, 200, 138, 0.3);
}

.btn-check:checked + .btn-outline-danger-custom {
    background-color: #e74a3b;
    border-color: #e74a3b;
    color: white;
    box-shadow: 0 4px 10px rgba(231, 74, 59, 0.3);
}

.btn-outline-success-custom {
    color: #1cc88a;
    border-color: #1cc88a;
}

.btn-outline-success-custom:hover {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
}

.btn-outline-danger-custom {
    color: #e74a3b;
    border-color: #e74a3b;
}

.btn-outline-danger-custom:hover {
    background-color: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
}

/* Label tombol agar rounded */
.btn-check + label {
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

/* Textarea styling */
textarea.form-control {
    resize: none; /* Agar user tidak bisa tarik-tarik ukuran box */
    border-radius: 15px;
}