body {
    font-family: 'Inter', sans-serif;
    background-color: #030303;
    /* Deep dark background */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #030303;
}

::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 3px;
}

/* Subtle noise texture overlay */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Toggle Switch Animation */
.toggle-checkbox:checked {
    right: 0;
    border-color: #525252;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #262626;
}

/* Smooth fade in */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

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

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Hide default checkbox */
.custom-check {
    appearance: none;
    background-color: transparent;
    margin: 0;
}

/* Toast Container & Styles (Adapted for Tailwind) */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(23, 23, 23, 0.95);
    /* Neutral 900 */
    backdrop-filter: blur(12px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 320px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left: 3px solid #ef4444;
}

/* Red-500 */
.toast.success {
    border-left: 3px solid #10b981;
}

/* Emerald-500 */

/* Loading Overlay (Tailwind match) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

/* Quill Overrides for Tailwind Dark Theme */
.ql-toolbar.ql-snow {
    background: #171717;
    /* Neutral 900 */
    border: 1px solid #262626 !important;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.ql-container.ql-snow {
    background: #0a0a0a;
    /* Neutral 950 */
    border: 1px solid #262626 !important;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    color: #d4d4d4;
    /* Neutral 300 */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.ql-stroke {
    stroke: #737373 !important;
}

.ql-fill {
    fill: #737373 !important;
}

.ql-editor {
    min-height: 400px;
}