/* pelaporan_form.css */
/* ======== GLOBAL ======== */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ======== BANNER ======== */
.banner {
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* ======== TEKS DI BANNER ======== */
.banner-text {
    position: absolute;
    color: #fff;
    animation: fadeIn 1.5s ease-in-out;
}

.banner-left {
    left: 50px;
    max-width: 480px;
    text-align: left;
}

.banner-text h1 {
    font-size: 35px;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.banner-text p {
    font-size: 20px;
    margin-top: 12px;
    font-weight: 300;
}

.highlight {
    color: #e60000;
}

/* ======== LOGIN BUTTON ======== */
.login-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: linear-gradient(90deg, rgb(11, 219, 94), rgb(3, 181, 92));
    color: #fff;
    padding: 10px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    transition: background 0.3s, transform 0.2s, color 0.3s;
}

.login-btn:hover {
    background: linear-gradient(90deg, rgb(13, 237, 103), rgb(2, 128, 65));
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
}

/* Animasi lembut */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======== FORM CONTAINER ======== */
.container {
    background: #fff;
    margin: 40px auto;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ======== FORM ELEMENTS ======== */
h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #222;
}

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

label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.form-control,
.form-control-file,
select,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}

/* ======== BUTTON ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    color: #fff; 
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    background-color: #6c757d;
}

/* ======== BUTTON CONTAINER KANAN ======== */
.btn-container {
    text-align: right;
}

/* ======== KATEGORI RADIO GRID ======== */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    margin-top: 8px;
}

.kategori-grid label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.kategori-grid input[type="radio"] {
    accent-color: #3264fe;
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* ======== PEMBATAS DETAIL ======== */
.detail-divider {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #333;
    margin: 25px 0 15px;
    font-size: 16px;
}

.detail-divider span {
    flex-grow: 1;
    height: 1px;
    background-color: #999;
    margin-left: 10px;
}

/* ======== HR / DIVIDER STYLING ======== */
.divider {
    border: none;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #e60000, #0056b3);
    margin: 0 auto 25px auto;
    border-radius: 2px;
    animation: slideIn 1s ease-in-out;
}

/* animasi halus saat muncul */
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 500px;
        opacity: 1;
    }
}

/* ======== CHARACTER INFO ======== */
.char-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 11px;
    color: #777;
}

.char-info small {
    margin: 0;
}

#charCount {
    color: #555;
    font-weight: bold;
    font-size: 10px;
}

#attachmentPreview {
    margin-top: 3px; 
    font-size: 11px;
    color: #333;
}

/* ======== SWEETALERT2 CUSTOM ======== */
.swal2-popup {
    font-family: Arial, sans-serif;
}

.swal2-popup .swal2-title {
    font-weight: bold;
    color: #222;
}

.swal2-popup .swal2-html-container {
    font-size: 14px;
    color: #333;
}

.swal2-popup .swal2-styled.swal2-confirm {
   background: linear-gradient(90deg, #f37021, #d94e00) !important;
    color: #fff !important;
    border-radius: 6px;
    font-weight: bold;
}

.swal2-popup .swal2-styled.swal2-confirm:hover {
    background: linear-gradient(90deg, #ff8333, #f37021) !important;
}

.swal2-popup .swal2-styled.swal2-cancel {
    background-color: #6c757d !important;
    color: #fff !important;
    border-radius: 6px;
}

.swal2-popup .swal2-styled.swal2-cancel:hover {
    background-color: #5a6268 !important;
}
