/* Custom ZET Color */
.bg-zet { background-color: #7c1f87; }
.text-zet { color: #7c1f87; }
.border-zet { border-color: #7c1f87; }
.focus\:ring-zet:focus { --tw-ring-color: #7c1f87; }
.hover\:text-zet:hover { color: #7c1f87; }
.bg-zet\/10 { background-color: rgba(124, 31, 135, 0.1); }
.focus\:ring-1:focus { --tw-ring-width: 1px; }

/* Modern Desktop App Styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-size: 14px;
}

/* Modern Sidebar */
#sidebar {
    background: linear-gradient(180deg, #7c1f87 0%, #6a1a75 100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    position: fixed !important;
    height: 100vh;
    overflow-y: auto;
}

/* Modern Cards */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Modern Table */
.modern-table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modern-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modern-table tbody tr:hover {
    background: rgba(124, 31, 135, 0.03);
    transform: scale(1.01);
}

/* Modern Input */
.modern-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-input:focus {
    background: #ffffff;
    border-color: #7c1f87;
    box-shadow: 0 0 0 4px rgba(124, 31, 135, 0.1);
    outline: none;
}

/* Loading Spinner */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading Bar Animation */
@keyframes loading {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* Toast Notification Animations */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out-right {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

/* Modern Button */
.modern-btn {
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Notification Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Toast Notification Animations */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out-right {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

#notificationModal > div,
#confirmModal > div,
#actionModal > div {
    animation: slideIn 0.3s ease-out;
}

/* Modern Badge */
.modern-badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Smooth Transitions */
.page-content {
    animation: fadeIn 0.4s ease-out;
}

/* Profile Badge Card helpers */
.bg-primary { background-color: #7c1f87; }
.bg-card-pattern {
    background-image: url('../img/diagmonds.png');
    background-repeat: repeat;
    background-size: 300px 300px;
}

/* ========== Modern INV Calendar Filter ========== */
.inv-calendar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    width: 300px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 16px;
    animation: invCalOpen 0.25s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(20px);
}

@keyframes invCalOpen {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.inv-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.inv-cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.inv-cal-nav-btn:hover {
    background: #7c1f87;
    color: #ffffff;
    transform: scale(1.05);
}

.inv-cal-title {
    text-align: center;
    flex: 1;
}

.inv-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.inv-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.inv-cal-day {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inv-cal-day:hover:not(.inv-cal-day-disabled):not(.inv-cal-day-selected) {
    background: rgba(124, 31, 135, 0.08);
    color: #7c1f87;
    transform: scale(1.1);
}

.inv-cal-day-today {
    background: rgba(124, 31, 135, 0.1);
    color: #7c1f87;
    font-weight: 700;
}

.inv-cal-day-today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7c1f87;
}

.inv-cal-day-selected {
    background: linear-gradient(135deg, #7c1f87, #a855f7) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(124, 31, 135, 0.35);
    transform: scale(1.05);
}

.inv-cal-day-selected::after {
    display: none;
}

.inv-cal-day-disabled {
    color: #d1d5db;
    cursor: default;
}

.inv-cal-day-other-month {
    color: #d1d5db;
}

.inv-cal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    gap: 8px;
}

.inv-cal-today-btn,
.inv-cal-clear-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.inv-cal-today-btn {
    background: linear-gradient(135deg, #7c1f87, #a855f7);
    color: #ffffff;
}

.inv-cal-today-btn:hover {
    box-shadow: 0 4px 14px rgba(124, 31, 135, 0.3);
    transform: translateY(-1px);
}

.inv-cal-clear-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.inv-cal-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Month Picker */
.inv-month-picker {
    padding: 8px;
    margin-bottom: 8px;
    background: #f9fafb;
    border-radius: 12px;
}

.inv-month-picker-item {
    padding: 6px 4px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.inv-month-picker-item:hover {
    background: rgba(124, 31, 135, 0.08);
    color: #7c1f87;
}

.inv-month-picker-item.active {
    background: linear-gradient(135deg, #7c1f87, #a855f7);
    color: #ffffff;
    font-weight: 600;
}

/* Filter active state */
#invFilterBtn.inv-filter-active {
    border-color: #7c1f87;
    background: rgba(124, 31, 135, 0.05);
    color: #7c1f87;
}

#invFilterBtn.inv-filter-active #invFilterLabel {
    color: #7c1f87;
    font-weight: 600;
}



