/* Tailor Dashboard Styles */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

.measurement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .measurement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .measurement-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.sidebar-link.active {
    background-color: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.view {
    display: none;
    animation: fadeIn 0.5s;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Mobile responsive styles */
.sidebar-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        position: fixed;
        z-index: 40;
        height: 100vh;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 30;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
    }
    
    .measurement-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 640px) {
    .measurement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Language selector styles */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modal Animations */
.animate-fade-in {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom Input Focus States */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom Radio Button Styling */
input[type="radio"]:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

/* Gradient Backgrounds */
.bg-gradient-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom Checkbox Styling */
input[type="checkbox"]:checked + div .checkbox-checked {
    display: flex !important;
}

input[type="checkbox"]:checked + div .checkbox-unchecked {
    display: none !important;
}

input[type="checkbox"]:checked + div {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

/* Card Hover Effects */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* User Menu Styles */
.user-dropdown {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.user-menu {
    position: relative;
}