/* ==========================================================================
   Demo Mobilya - App & Utility Overrides
   ========================================================================== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-size: 15px;
    line-height: 1.6;
    color: #1f1f1f;
}

body.is-admin-mode {
    padding-bottom: 75px; /* Space for floating live admin dock */
}

/* Minimum Font Size Safeguard (Ensure minimum 13px across all elements) */
small, 
.text-xs,
[class*="text-[9px]"],
[class*="text-[10px]"],
[class*="text-[11px]"],
[class*="text-[12px]"] {
    font-size: 13px !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8f6f0;
}
::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Modals base state */
.modal-backdrop {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open,
.modal-backdrop.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-backdrop.open > div,
.modal-backdrop.show > div {
    transform: scale(1) !important;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast.toast-success {
    border-left: 4px solid #c5a880;
}

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

.toast.toast-info {
    border-left: 4px solid #c5a880;
}
