/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Smooth transitions */
.page-transition {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Calendar grid adjustments */
.calendar-day {
    min-height: 80px;
    transition: all 0.2s;
}

.calendar-day:hover {
    background-color: #f3f4f6;
}

/* Task card hover effect */
.task-card {
    transition: all 0.2s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Modal animation */
.modal-enter {
    animation: modalEnter 0.2s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Priority badges */
.priority-high {
    background-color: #fee2e2;
    color: #dc2626;
}

.priority-medium {
    background-color: #fef3c7;
    color: #d97706;
}

.priority-low {
    background-color: #d1fae5;
    color: #059669;
}

/* Status indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-active {
    background-color: #10b981;
}

.status-pending {
    background-color: #f59e0b;
}

/* Document icons */
.doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.doc-pdf { background: linear-gradient(135deg, #ef4444, #dc2626); }
.doc-image { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.doc-doc { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.doc-sheet { background: linear-gradient(135deg, #10b981, #059669); }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sidebar-open {
        transform: translateX(0) !important;
    }
}

/* Loading animation */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}