/* Monizor - Main Styles */

/* Scrollbar Utilities */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Custom Focus Styles */
.focus-visible:focus {
    outline: 2px solid theme('colors.primary.500');
    outline-offset: 2px;
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Mobile Menu Animation */
.mobile-menu-transition {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

/* Period Navigation Improvements */
.period-nav-container {
    position: relative;
}

.period-nav-scroll {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.period-nav-scroll::-webkit-scrollbar {
    display: none;
}

/* Smooth transitions for buttons */
.btn-transition {
    transition: all 0.2s ease-in-out;
}

.btn-transition:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid theme('colors.primary.500');
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form improvements */
.form-input {
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    border-color: theme('colors.primary.500');
    box-shadow: 0 0 0 3px rgba(172, 72, 218, 0.1);
}

/* Material Icons alignment fix */
.material-symbols-outlined {
    vertical-align: middle;
    line-height: 1;
}

/* Group Radio Cards */
.group-radio-card {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    color: #374151;
}

.group-radio-card:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.group-radio-card.selected {
    border-color: #4bc0c0;
    background-color: #ccfbf1;
    color: #0f766e;
    box-shadow: 0 0 0 1px rgba(75, 192, 192, 0.1);
}

.group-radio-card.selected:hover {
    border-color: #0d9488;
    background-color: #ccfbf1;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}