body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    }
    .form-input {
        border-radius: 0.5rem;
        border: 1px solid #cbd5e1;
        background-color: #ffffff;
        padding: 0.75rem 1rem;
        transition: all 0.2s ease-in-out;
        }
    .form-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }
    .form-input:invalid {
        border-color: #f43f5e;
        }
    .form-input:read-only {
        background-color: #f1f5f9;
        cursor: not-allowed;
        }
    .custom-checkbox {
        accent-color: #2563eb;
        height: 1.15rem;
        width: 1.15rem;
        cursor: pointer;
        }
    .table-row-hover:hover {
        background-color: #f1f5f9;
        }
    .btn-loading {
        cursor: not-allowed;
        background-color: #93c5fd;
        }
    /* BARU: Menambahkan style untuk label yang nonaktif agar terlihat jelas */
    .label-disabled {
        opacity: 0.5;
        cursor: not-allowed;
        }

    /* BARU: Style untuk pop-up pilihan template */
    .template-popover {
        position: absolute;
        background-color: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        z-index: 50;
        max-height: 200px;
        overflow-y: auto;
        min-width: 250px;
        }
    .template-item {
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-size: 0.875rem; /* text-sm */
        }
    .template-item:hover {
        background-color: #f1f5f9; /* slate-100 */
        }

    /* BARU: Style untuk Modal Template */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(15, 23, 42, 0.6); /* slate-900 with opacity */
        z-index: 999;
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        }

    .modal-container {
        background-color: white;
        border-radius: 0.75rem; /* rounded-xl */
        box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
        width: 90%;
        max-width: 48rem; /* max-w-3xl */
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: modal-fade-in 0.3s ease-out;
        }

    @keyframes modal-fade-in {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
        }

    .modal-filter-btn {
        padding: 0.5rem 1rem;
        border: 1px solid #e2e8f0; /* slate-200 */
        border-radius: 9999px; /* rounded-full */
        font-size: 0.875rem;
        font-weight: 500;
        color: #475569; /* slate-600 */
        cursor: pointer;
        transition: all 0.2s;
        }
    .modal-filter-btn:hover {
        background-color: #f1f5f9; /* slate-100 */
        border-color: #cbd5e1; /* slate-300 */
        }
    .modal-filter-btn.active {
        background-color: #4f46e5; /* indigo-600 */
        color: white;
        border-color: #4f46e5; /* indigo-600 */
        }

    .modal-template-item {
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #f1f5f9; /* slate-100 */
        cursor: pointer;
        transition: background-color 0.2s;
        }
    .modal-template-item:hover {
        background-color: #eef2ff; /* indigo-50 */
        }
    .modal-template-item:last-child {
        border-bottom: none;
        }