/* Custom Styles for Pengajuan Keberatan Form - Combined with Cek Status Styles */
:root {
    --primary-color: #111827;
    --secondary-color: #6c757d;
    --dark-color: #111827;
    --light-color: #f8f9fa;
}

body {
    background-color: #fff;
}

/* === Shared Styles from Cek Status === */

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #111827;
    transition: all 0.3s ease;
}

.bg-light-danger {
    background-color: #fff;
    border-left: 5px solid #dc3545;
}

.btn-primary {
    background-color: #111827;
    border-color: #111827;
}

.btn-primary:hover {
    background-color: #1f2937;
    border-color: #1f2937;
}

.text-theme {
    color: #111827 !important;
}

.bg-theme-light {
    background-color: rgba(17, 24, 39, 0.05) !important;
}

.status-box {
    background-color: #f9fafb;
    border-left: 5px solid #111827;
    max-width: 520px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.status-box i {
    vertical-align: middle;
}

.info-note {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #111827;
    font-size: 0.925rem;
    line-height: 1.6;
}

.info-note .icon-wrapper {
    min-width: 32px;
    background-color: transparent;
    /* Override default icon-wrapper bg for info-note */
    color: #111827;
}

/* === Form Specific Styles === */

.status-card {
    border: none;
    transition: all 0.3s ease;
}

.icon-wrapper {
    background-color: rgba(17, 24, 39, 0.05);
    color: var(--primary-color);
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-control-lg,
.form-select-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.btn-lg {
    font-size: 1rem;
    font-weight: 600;
}

/* === Kuasa Section Styles (Specific to this form) === */

/* Kuasa Toggle Switch */
.custom-switch {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.custom-switch:checked {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

/* Kuasa Collapse Animation */
.kuasa-collapse {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}

.kuasa-collapse.expanded {
    max-height: 2000px;
    opacity: 1;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* File Upload Wrapper */
.file-upload-wrapper {
    position: relative;
}

/* === Loading & Animations === */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-up {
    animation: fadeUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Searchable Dropdown */
.position-relative {
    position: relative !important;
}

.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    margin-top: 4px;
}

.dropdown-item-kota {
    padding: 0.8rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.dropdown-item-kota:hover {
    background-color: #111827 !important;
    color: #fff !important;
    padding-left: 1.5rem !important;
    border-left: 3px solid #111827 !important;
}

.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}