/*
 * jamaah-components.css
 * CSS khusus untuk komponen halaman jamaah (form, table, badge)
 * Diload SETELAH Tailwind agar override berfungsi
 */

/* === FORM COMPONENTS === */
.form-group {
    margin-bottom: 20px !important;
    display: block !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem;
    color: #111827;
}

.form-control {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    background: white !important;
    color: #111827 !important;
    display: block !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    appearance: auto !important;
}

.form-control:focus {
    outline: none !important;
    border-color: #D60073 !important;
    box-shadow: 0 0 0 3px rgba(214, 0, 115, 0.1) !important;
}

select.form-control {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    cursor: pointer !important;
}

textarea.form-control {
    resize: vertical !important;
    min-height: 80px !important;
}

/* === TABLE COMPONENTS === */
.table-responsive {
    overflow-x: auto !important;
    width: 100% !important;
}

.table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 12px 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #E5E7EB !important;
    vertical-align: middle !important;
}

.table th {
    background: #FFF0F7 !important;
    color: #D60073 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* === BADGE COMPONENT === */
.badge {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: #FFF0F7 !important;
    color: #D60073 !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

/* === BUTTON COMPONENTS === */
.btn {
    display: inline-block !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

.btn-primary {
    background-color: #D60073 !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #9D0053 !important;
    color: white !important;
}

.btn-outline {
    background-color: transparent !important;
    border-color: #D60073 !important;
    color: #D60073 !important;
}

.btn-outline:hover {
    background-color: #D60073 !important;
    color: white !important;
}

/* === ALERT COMPONENTS === */
.alert {
    padding: 15px !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.alert-success {
    background: #DCFCE7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}

.alert-danger {
    background: #FEE2E2 !important;
    color: #991B1B !important;
    border: 1px solid #fca5a5 !important;
}