/**
 * ShiftPlan Pro - Frontend Styles
 */

/* Reset and base styles */
.shiftplan-pro-wrapper {
    min-height: calc(100vh - 100px);
}

.shiftplan-pro-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #1f2937;
}

.shiftplan-pro-app * {
    box-sizing: border-box;
}

/* Custom scrollbar */
.shiftplan-pro-app ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.shiftplan-pro-app ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.shiftplan-pro-app ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.shiftplan-pro-app ::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animation for sidebar */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

/* Card hover effects */
.shiftplan-pro-app .card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shiftplan-pro-app .card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Button transitions */
.shiftplan-pro-app button {
    transition: all 0.2s ease;
}

.shiftplan-pro-app button:active {
    transform: scale(0.98);
}

/* Form focus states */
.shiftplan-pro-app input:focus,
.shiftplan-pro-app select:focus,
.shiftplan-pro-app textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

/* Badge styles */
.shiftplan-pro-app .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Calendar day hover */
.shiftplan-pro-app .calendar-day {
    transition: background-color 0.2s ease;
}

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

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.shiftplan-pro-app .spinner {
    animation: spin 1s linear infinite;
}

/* Toast notifications */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.shiftplan-pro-app .toast {
    animation: slideUp 0.3s ease;
}

/* Mobile optimizations */
@media (max-width: 1024px) {
    .shiftplan-pro-app .sidebar {
        position: fixed;
        z-index: 50;
    }
}

/* Print styles */
@media print {
    .shiftplan-pro-app .no-print {
        display: none !important;
    }
    
    .shiftplan-pro-app {
        background: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .shiftplan-pro-app {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .shiftplan-pro-app * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
