/* ==========================================
   Visol Timesheet - Custom Styles
   ========================================== */

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Time Input Styling */
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* ==========================================
   Loader
   ========================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

#loader.hidden {
    display: none !important;
}

/* ==========================================
   Modals - Base Styles
   ========================================== */
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Worker Modal */
#workerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

#workerModal.hidden {
    display: none !important;
}

/* Confirm Modal */
#confirmModal.hidden {
    display: none !important;
}

/* Change Password Modal */
#changePasswordModal {
    display: flex;
    justify-content: center;
    align-items: center;
}

#changePasswordModal.hidden {
    display: none !important;
}

/* Exception Modal */
#exceptionModal.hidden {
    display: none !important;
}

/* Vacation Modal */
#vacationModal.hidden {
    display: none !important;
}

/* Day Edit Modal */
#dayEditModal.hidden {
    display: none !important;
}

/* Email Setup Modal */
#emailSetupModal.hidden {
    display: none !important;
}

/* User Profile Modal */
#userProfileModal.hidden {
    display: none !important;
}

/* Admin Worker Profile Modal */
#adminWorkerProfileModal.hidden {
    display: none !important;
}

/* ==========================================
   Toast Notifications
   ========================================== */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ==========================================
   Login Screen
   ========================================== */
#loginScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4500 100%);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loginScreen.hidden {
    display: none !important;
}

#mainContent.blurred {
    filter: blur(10px);
    pointer-events: none;
}

/* ==========================================
   Scrollbar Hiding
   ========================================== */
/* Hide scrollbars for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* ==========================================
   Background & HTML Base
   ========================================== */
html {
    background-color: #ff6b35; /* Match start of gradient for overscroll */
}
