/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* Login Page Styling */
.login-container {
    display: flex;
    min-height: 100vh;
}

.left-panel {
    width: 40%;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    text-align: center;
}

#logo-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.welcome-content, .left-panel .footer-links {
    position: relative;
    z-index: 2;
}

.welcome-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.welcome-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.left-panel .footer-links {
    font-size: 14px;
    opacity: 0.8;
}

.left-panel .footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.right-panel {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    position: relative;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    z-index: 2;
    position: relative;
    animation: fadeInSlideUp 0.8s ease-out forwards;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-form-wrapper h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.login-form-wrapper p {
    color: #e5e7eb;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.right-panel .form-group label {
    color: #d1d5db;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
}

.right-panel .form-group input,
.right-panel .form-group select {
    border-color: #374151;
    background-color: #1f2937;
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.right-panel .form-group input:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5);
}

.form-options {
    text-align: right;
    margin-bottom: 25px;
}

.form-options a {
    color: #28a745;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-login, .btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-login:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* --- LOGO STYLES --- */
.face-logo-image {
    height: 40px; 
    width: auto;
}
.face-logo-image-login {
    height: 340px;
    width: auto;
    margin-bottom: 30px;
    animation: pulsingGlow 4s infinite ease-in-out;
}
.face-logo-image-form {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

@keyframes pulsingGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6)); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); }
}

/* --- FOOTER VISIBILITY --- */
.mobile-footer {
    display: none;
}

/* --- AGENT FORM PAGE STYLING --- */
.form-page-body {
    padding: 50px 20px;
}
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-header {
    text-align: center;
    margin-bottom: 40px;
}
.form-header h2 {
    font-size: 28px;
    margin: 10px 0;
}
.form-header p {
    color: #6c757d;
}
.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.form-section-title:first-of-type {
    margin-top: 0;
}
.agent-form .form-group label {
    color: #28a745;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}
.document-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default 1 kolom */
    gap: 20px 30px;
}
@media (min-width: 768px) {
    .document-grid {
        grid-template-columns: 1fr 1fr; /* 2 kolom di desktop */
    }
}
.remarks-section {
    margin-top: 30px;
}
.file-upload .checkbox-option {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.file-upload .checkbox-option input {
    margin-right: 8px;
}
.file-upload .checkbox-option label {
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 0;
    color: #333; /* Warna label checkbox normal */
}
.form-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.btn-back {
    width: auto;
    padding: 15px 30px;
    background-color: #6c757d;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-back:hover {
    background-color: #5a6268;
}
.agent-form .btn-submit {
    margin-top: 0;
}


/* DASHBOARD STYLING */
.dashboard-body {
    background-color: #f8f9fa;
}
.dashboard-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-logout {
    background-color: #fdecea;
    color: #dc3545;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btn-logout:hover {
    background-color: #dc3545;
    color: white;
}
.dashboard-main {
    padding: 40px 0;
}
.dashboard-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.dashboard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.dashboard-actions h2 {
    margin: 0;
    font-size: 28px;
}
.btn-primary {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary:hover {
    background-color: #218838;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}
.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}
.stat-card p {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}
.stat-card.approved p { color: #28a745; }
.stat-card.pending p { color: #ffc107; }
.stat-card.rejected p { color: #dc3545; }
.prospect-table-container, .user-table-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    overflow-x: auto;
}
.prospect-table-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
}
.prospect-table {
    width: 100%;
    border-collapse: collapse;
}
.prospect-table th, .prospect-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    white-space: nowrap;
}
.prospect-table th {
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
}
.prospect-table td {
    font-weight: 500;
}
.status-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.status-pill.pending { background-color: #fff3cd; color: #856404; }
.status-pill.approved { background-color: #d4edda; color: #155724; }
.status-pill.rejected { background-color: #f8d7da; color: #721c24; }
.status-pill.new { background-color: #d1ecf1; color: #0c5460; }
.btn-table {
    background-color: #e9ecef;
    color: #343a40;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-table:hover {
    background-color: #343a40;
    color: white;
}
.action-buttons {
    display: flex;
    gap: 10px;
}
.btn-table.delete {
    background-color: #fdecea;
    color: #dc3545;
}
.btn-table.delete:hover {
    background-color: #dc3545;
    color: white;
}
.bank-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.bank-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}
.bank-pill.mandiri { background-color: #003366; }
.bank-pill.bfi { background-color: #ff5722; }
.bank-pill.mofi { background-color: #e91e63; }
.bank-pill.pds { background-color: #4caf50; }
.dashboard-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 30px;
}
.dashboard-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.dashboard-nav a.active, .dashboard-nav a:hover {
    color: #28a745;
    border-bottom-color: #28a745;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover, .close-button:focus {
    color: black;
}
.form-message {
    margin-top: 15px; padding: 10px; border-radius: 8px;
    text-align: center; font-weight: 600; display: none;
}
.form-message.success { background-color: #e9f7ef; color: #28a745; display: block; }
.form-message.error { background-color: #fdecea; color: #dc3545; display: block; }
.user-profile .btn-primary,
.user-profile .btn-logout {
    padding: 8px 15px;
    font-size: 14px;
}
.notification-warning {
    font-size: 11px;
    font-weight: 600;
    color: #856404;
    background-color: #fff3cd;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}
.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.detail-header h2 { margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 992px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-card { background: #fff; padding: 25px; border-radius: 12px; margin-bottom: 20px; }
.detail-card h3 { margin-top: 0; }
.document-link { display: block; padding: 10px; background: #f1f1f1; border-radius: 6px; margin-bottom: 10px; text-decoration: none; color: #333; font-weight: 600; }
.document-link:hover { background: #e2e2e2; }
.remarks-history { max-height: 400px; overflow-y: auto; margin-bottom: 20px; }
.remark-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.remark-item:last-child { border-bottom: none; }
.remark-comment { margin: 0 0 8px 0; }
.remark-meta { font-size: 12px; color: #6c757d; margin: 0; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .left-panel, .right-panel {
        width: 100%;
        min-height: auto;
    }
    .left-panel {
        padding: 40px 20px;
        text-align: center;
        justify-content: center;
    }
    .right-panel {
        padding: 40px 20px;
        box-sizing: border-box;
    }
    .face-logo-image-login {
        height: 150px;
    }
    .welcome-content h2 {
        font-size: 28px;
    }
    .desktop-footer {
        display: none;
    }
    .mobile-footer {
        display: block;
        text-align: center;
        margin-top: 30px;
        font-size: 14px;
    }
    .mobile-footer span {
        color: #6b7280;
    }
    .mobile-footer a {
        color: #d1d5db;
        margin-left: 15px;
    }
    .form-grid, .document-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================= */
/* FIX: Aturan spesifik untuk logo kecil di form */
/* ============================================= */
body.form-page-body .form-container .form-header .face-logo-image-small {
    height: 45px !important;
    width: auto !important;
    margin-bottom: 20px !important;
}

/* ============================================= */
/* FIX: Styling untuk tombol aksi di form        */
/* ============================================= */
.form-actions {
    display: flex;
    justify-content: flex-end; /* Posisikan tombol ke kanan */
    align-items: center;       /* Sejajarkan tombol secara vertikal */
    gap: 12px;                 /* Jarak antar tombol */
    margin-top: 25px;
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
}

/* Style dasar untuk SEMUA tombol di .form-actions */
.form-actions .btn-secondary,
.form-actions .btn-submit {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none; /* Menghapus garis bawah dari link <a> */
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
}

.form-actions .btn-secondary:active,
.form-actions .btn-submit:active {
    transform: scale(0.98); /* Efek saat tombol ditekan */
}

/* Style khusus untuk tombol "Submit Prospect" (Hijau) */
.form-actions .btn-submit {
    background-color: #27ae60; /* Warna hijau primer */
    color: white;
    flex-grow: 1; /* Membuat tombol submit mengisi sisa ruang */
    max-width: 70%; /* Batasi lebar maksimumnya */
}
.form-actions .btn-submit:hover {
    background-color: #2ecc71; 
}

/* Style khusus untuk tombol "Back" (Abu-abu) */
.form-actions .btn-secondary {
    background-color: #6c757d; /* Warna abu-abu sekunder */
    color: white;
}
.form-actions .btn-secondary:hover {
    background-color: #5a6268;
}

#stat-total-amount {
    font-size: 18px; /* Sesuaikan ukuran ini sesuai keinginan, misal: 22px atau 1.5rem */
}

/* ============================================= */
/* PIPELINE VIEW STYLING                         */
/* ============================================= */

#pipeline-container {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    overflow-x: auto; /* Memungkinkan scroll horizontal jika kolom tidak muat */
    min-height: 60vh;
}

.pipeline-column {
    flex: 1 0 300px; /* Lebar kolom, tidak akan menyusut, basis 300px */
    background-color: #f4f7f6;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #dee2e6;
    max-width: 320px;
}

.pipeline-column h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.prospect-card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px; /* Batas tinggi agar bisa scroll internal */
    overflow-y: auto;
    padding-right: 5px; /* ruang untuk scrollbar */
}

.prospect-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prospect-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.prospect-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.prospect-card .status-pill {
    float: right;
}

/* ============================================= */
/* BLOG MODAL STYLING                            */
/* ============================================= */

/* Global modal styling (as it seems to be missing consistent base styling in your provided file) */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Specific styling for the blog modal to match the dark theme */
.modal-content.blog-modal {
    background-color: #1f2937; /* Dark background from your login form */
    color: #e5e7eb; /* Light text color from your login form */
    padding: 30px;
    border: 1px solid #374151; /* Darker border */
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.modal-content.blog-modal h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.close-button {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #ffffff;
}

/* Styling for the form groups inside the blog modal */
.form-group.blog-form-group {
    margin-bottom: 20px;
}

.form-group.blog-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #d1d5db; /* A light, slightly muted label color */
}

/* Styling for all input fields and textarea in the blog modal */
.modal-content.blog-modal input[type="text"],
.modal-content.blog-modal input[type="file"],
.modal-content.blog-modal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #374151; /* Border color from your login form */
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #2c3340; /* A darker background for inputs */
    color: #ffffff; /* White text for inputs */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.modal-content.blog-modal input[type="text"]:focus,
.modal-content.blog-modal textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5); /* Green glow effect from your login form */
}

/* Specific styling for the file input button text */
.modal-content.blog-modal input[type="file"]::-webkit-file-upload-button {
    background-color: #374151;
    color: #ffffff;
    border: 1px solid #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-content.blog-modal input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #4a5463;
}

/* Styling for the save button */
#submitBlogBtn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, #28a745, #218838); /* Green gradient from your login button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#submitBlogBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}