/* Drag and Drop Styles */
.task-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

/* Quadrant colors */
.task-item.q1 {
    background-color: #FEE2E2;
    border-color: #FECACA;
}

.task-item.q2 {
    background-color: #DCFCE7;
    border-color: #BBF7D0;
}

.task-item.q3 {
    background-color: #FEF9C3;
    border-color: #FEF08A;
}

.task-item.q4 {
    background-color: #F3F4F6;
    border-color: #E5E7EB;
}

/* Drag handle */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    color: #6B7280;
    font-size: 1.25rem;
    margin-right: 0.25rem;
    -webkit-tap-highlight-color: transparent;
}

.drag-handle:active {
    cursor: grabbing;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Task content */
.task-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 0.5rem;
}

.task-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #4F46E5;
}

.task-content span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.task-content button {
    padding: 0.25rem;
    color: #EF4444;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.task-content button:hover {
    opacity: 1;
}

/* Dragging state */
.task-item.dragging {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Ghost element */

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 0.375rem 0.5rem;
    color: #6B7280;
    font-style: italic;
    background-color: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
    min-height: auto;
}

.empty-state p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0;
}

/* Quadrant sections */
.quadrant-section {
    border: 2px solid;
    transition: all 0.2s ease;
}

.quadrant-section.q1 {
    border-color: #FECACA;
    background-color: #FEF2F2;
}

.quadrant-section.q2 {
    border-color: #BBF7D0;
    background-color: #F0FDF4;
}

.quadrant-section.q3 {
    border-color: #FEF08A;
    background-color: #FFFBEB;
}

.quadrant-section.q4 {
    border-color: #E5E7EB;
    background-color: #F9FAFB;
}

/* Drop zone styling */
.drop-zone {
    min-height: 60px;
    transition: all 0.2s ease;
}

.drop-zone.drag-over {
    background-color: #EBF4FF;
    border-color: #3B82F6;
    transform: scale(1.02);
}

/* Task container styling */
.tasks-container {
    min-height: 40px;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
}

/* Drop zone styles */
.drop-zone {
    transition: all 0.2s ease;
    min-height: 20px;
    border: 2px dashed transparent;
}

.drop-zone:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.drop-zone.bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgb(59, 130, 246);
    border-style: solid;
}

/* Task item drag styles */
.task-item.cursor-move {
    cursor: grab;
}

.task-item.cursor-move:active {
    cursor: grabbing;
}

/* Main Tab System Styles */
.tab-main {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-main:hover {
    background-color: #F3F4F6;
}

.tab-main.active {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
}

.tab-content {
    transition: all 0.3s ease;
}

.tab-content.hidden {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

/* Goal-specific styles */
.goal-item {
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.goal-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive step indicators */
@media (max-width: 640px) {
    .step-indicator {
        flex-direction: column;
    }
    
    .step-connector {
        width: 2px;
        height: 30px;
        margin: 4px 0;
    }
    
    .step-label {
        font-size: 10px;
    }
}
.task-ghost {
    opacity: 0.8;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    user-select: none;
    -webkit-user-select: none;
}

/* Drop target */
.task-list {
    min-height: 50px;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.task-list.drag-over {
    background-color: rgba(79, 70, 229, 0.1);
    border: 2px dashed #4F46E5;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .task-item {
        padding: 0.375rem;
        margin-bottom: 0.375rem;
    }

    .drag-handle {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        margin-right: 0.125rem;
    }

    .task-content {
        gap: 0.375rem;
    }

    .task-content input[type="checkbox"] {
        width: 14px;
        height: 14px;
        min-width: 14px;
    }

    .task-content button {
        padding: 0.125rem;
        font-size: 1.25rem;
    }

    /* Prevent text selection during drag */
    .task-item.dragging {
        user-select: none;
        -webkit-user-select: none;
    }

    /* Ensure proper touch targets */
    .task-content button,
    .task-content input[type="checkbox"] {
        min-width: 28px;
        min-height: 28px;
    }

    /* Prevent body scroll during drag */
    body.dragging {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
        touch-action: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }
}

/* Dark mode */
.dark .task-item.q1 {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.dark .task-item.q2 {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.dark .task-item.q3 {
    background-color: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
}

.dark .task-item.q4 {
    background-color: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.2);
}

.dark .task-list.drag-over {
    background-color: rgba(79, 70, 229, 0.2);
    border-color: #6366F1;
}

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

.task-item.dragging .drag-handle {
    cursor: grabbing;
}

.role-badge, .quadrant-badge {
    transition: all 0.2s ease;
    cursor: pointer;
}

.role-badge:hover, .quadrant-badge:hover {
    transform: scale(1.05);
}

/* Drop target styles */
.role-badge.drag-over {
    background-color: rgba(59, 130, 246, 0.2) !important;
    transform: scale(1.1);
}

.quadrant-badge.drag-over {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px currentColor;
}

/* Animation for task movement */
@keyframes taskMove {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.task-item.moving {
    animation: taskMove 0.3s ease;
}

/* Prevent text selection during drag */
.dragging * {
    user-select: none;
    -webkit-user-select: none;
}

/* Show drag handle on hover/active */
@media (hover: hover) {
    .task-item:hover .drag-handle {
        opacity: 1;
    }
}

/* Chart container fixes */
.chart-container {
    width: 100%;
    height: 300px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 200px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .drag-handle {
        color: #999;
    }

    .drag-handle:active {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .task-ghost {
        background: #1f2937;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Check-in modal styles */
#checkInModal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#checkInModal .bg-white {
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#checkInModal h2 {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

#checkInModal textarea {
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

#checkInModal textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Check-in status indicators */
.checkin-status {
    animation: pulse 2s infinite;
}

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

/* Task list in check-in modal */
#checkInModal .space-y-2 > div {
    padding: 0.5rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

#checkInModal .space-y-2 > div:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for check-in */
@media (max-width: 640px) {
    #checkInModal .max-w-2xl {
        max-width: 95vw;
        margin: 0.5rem;
        padding: 1rem;
    }
    
    #checkInModal .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    #checkInModal .md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    #checkInModal .flex.justify-end.space-x-3 {
        flex-direction: column;
        space-x: 0;
        gap: 0.5rem;
    }
    
    /* Optimize task display in check-in modal for mobile */
    #checkInModal .space-y-2 > div {
        padding: 0.5rem;
        margin-bottom: 0.375rem;
    }
    
    #checkInModal .mb-4 {
        margin-bottom: 0.5rem;
    }
    
    #checkInModal .mb-2 {
        margin-bottom: 0.25rem;
    }
    
    #checkInModal .mb-1 {
        margin-bottom: 0.125rem;
    }
    
    #checkInModal .p-3 {
        padding: 0.5rem;
    }
    
    #checkInModal .ml-7 {
        margin-left: 1rem;
    }
    
    #checkInModal .ml-8 {
        margin-left: 1.5rem;
    }
    
    #checkInModal .space-y-2 {
        gap: 0.375rem;
    }
    
    #checkInModal .space-y-4 {
        gap: 0.75rem;
    }
    
    /* Optimize goal items layout */
    #checkInModal .flex.items-start {
        align-items: flex-start;
    }
    
    #checkInModal .flex-shrink-0 {
        flex-shrink: 0;
    }
    
    /* Reduce spacing in modal header */
    #checkInModal .mb-1 {
        margin-bottom: 0.125rem;
    }
    
    #checkInModal .mb-2 {
        margin-bottom: 0.25rem;
    }
    
    #checkInModal .mb-3 {
        margin-bottom: 0.5rem;
    }
    
    #checkInModal .mb-4 {
        margin-bottom: 0.75rem;
    }
    
    /* Make checkboxes larger for touch */
    #checkInModal input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        min-height: 1.25rem;
    }
    
    /* Optimize text sizes for mobile */
    #checkInModal .text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    #checkInModal .text-xs {
        font-size: 0.75rem;
        line-height: 1rem;
    }
    
    /* Stack role and quadrant badges vertically on very small screens */
    #checkInModal .flex.items-center.space-x-2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    #checkInModal .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Make goal headers more compact */
    #checkInModal .font-medium {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    /* Mobile-specific task item optimizations */
    .mobile-task-item {
        padding: 0.5rem;
        border-radius: 0.375rem;
        background-color: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
        white-space: nowrap;
    }
    
    /* Stack badges vertically on mobile */
    .mobile-task-item .flex.items-center.space-x-1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }
    
    /* Improve touch targets */
    .mobile-task-item label {
        min-height: 2.5rem;
        display: flex;
        align-items: flex-start;
        padding: 0.25rem 0;
    }
    
    /* Better spacing for mobile */
    .mobile-task-item .gap-1 {
        gap: 0.5rem;
    }
}

/* Button improvements */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth transitions for UI updates */
#checkInBtn {
    transition: all 0.3s ease;
    min-width: 180px; /* Consistent width for single button */
}

#checkInStatusIndicator {
    transition: all 0.2s ease;
}

/* Single button container - simplified */
.checkin-single-button {
    display: block;
    width: 100%;
}

/* Disabled button styling */
.disabled-status-btn {
    cursor: not-allowed !important;
    opacity: 0.75;
    pointer-events: none;
}

.disabled-status-btn:hover {
    transform: none !important;
}

/* Status indicator animation */
.checkin-status {
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Mobile optimizations for task items */
@media (max-width: 640px) {
    /* Task items in main view */
    .task-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Make checkboxes larger for touch */
    .task-checkbox {
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        min-height: 1.25rem;
    }
    
    /* Optimize text sizes */
    .task-item .text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    /* Stack role and quadrant badges on mobile */
    .task-item .flex.items-center.space-x-2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Make role badges more compact */
    .role-badge, .quadrant-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin: 0.125rem 0;
    }
    
    /* Optimize task actions button */
    .task-actions-btn {
        padding: 0.5rem;
        min-width: 2rem;
        min-height: 2rem;
    }
    
    /* Make task description more readable */
    .task-item span {
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
    /* Further reduce padding */
    .task-item {
        padding: 0.5rem;
        margin-bottom: 0.375rem;
    }
    
    /* Make checkboxes even larger for very small screens */
    .task-checkbox {
        width: 1.5rem;
        height: 1.5rem;
        min-width: 1.5rem;
        min-height: 1.5rem;
    }
    
    /* Reduce font sizes further */
    .task-item .text-sm {
        font-size: 0.8125rem;
        line-height: 1.125rem;
    }
    
    /* Make badges even more compact */
    .role-badge, .quadrant-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
    }
    
    /* Optimize modal for very small screens */
    #checkInModal .max-w-2xl {
        max-width: 98vw;
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    #checkInModal input[type="checkbox"] {
        width: 1.5rem;
        height: 1.5rem;
        min-width: 1.5rem;
        min-height: 1.5rem;
    }
}

/* Responsive button adjustments */
@media (max-width: 640px) {
    #checkInBtn {
        width: 100% !important;
        min-width: unset;
    }
    
    /* Optimize check-in modal buttons for mobile */
    #checkInModal button {
        min-height: 2.75rem;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    #checkInModal .touch-manipulation {
        min-height: 2.75rem;
        padding: 0.75rem 1rem;
    }
    
    /* Style for postpone link and previous link */
    #checkInModal #postponeCheckIn,
    #checkInModal #prevStep {
        font-size: 0.875rem;
        text-decoration: underline;
        color: #6b7280;
    }
    
    #checkInModal #postponeCheckIn:hover,
    #checkInModal #prevStep:hover {
        color: #374151;
    }
    
    /* Ensure proper alignment on mobile */
    #checkInModal .flex.justify-between {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center;
    }
    
    #checkInModal #rightNavigation {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-left: auto;
    }
    
    #checkInModal #prevStep {
        margin-right: auto;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
    #checkInModal button {
        min-height: 3rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    #checkInModal .touch-manipulation {
        min-height: 3rem;
        padding: 0.875rem 1.25rem;
    }
    
    /* Keep consistent text size on very small screens */
    #checkInModal #postponeCheckIn,
    #checkInModal #prevStep {
        font-size: 0.875rem;
    }
    
    /* Ensure proper spacing on very small screens */
    #checkInModal #rightNavigation {
        gap: 0.5rem;
        margin-left: auto;
    }
    
    #checkInModal #prevStep {
        margin-right: auto;
    }
}

/* Prevent scrolling during drag */
body.dragging {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

/* Make checkboxes smaller on mobile */
@media (max-width: 768px) {
    .task-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        min-width: 16px;
        margin-right: 8px;
    }
} 

/* Enhanced focus states for accessibility */
.mobile-bottom-nav .nav-item:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Hover effects for desktop */
@media (hover: hover) {
    .mobile-bottom-nav .nav-item:hover {
        background-color: rgba(79, 70, 229, 0.05);
    }
}

/* PC View Optimizations - Desktop Style */
@media (min-width: 1024px) {
    body {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    /* Header optimization */
    .bg-gradient-to-r.from-indigo-600.to-purple-600 {
        max-width: 1000px;
        margin: 0 auto 2rem auto;
        border-radius: 1.5rem;
    }
    
    /* Tab content optimization */
    .tab-content {
        max-width: 900px;
        margin: 0 auto;
        background: white;
        border-radius: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }
    
    /* Check-in button optimization */
    #checkInBtn {
        max-width: 300px !important;
        margin: 0 auto;
        display: block;
        border-radius: 0.75rem;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    }
    
    #checkInBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
    }
    
    /* Panel de Productividad optimization */
    .bg-white.p-4.rounded-lg.shadow-sm {
        border-radius: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }
    
    /* Form inputs optimization */
    input[type="text"], select, textarea {
        border-radius: 0.75rem;
        border: 2px solid #e5e7eb;
        transition: all 0.2s ease;
    }
    
    input[type="text"]:focus, select:focus, textarea:focus {
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        outline: none;
    }
    
    /* Button optimization */
    button {
        border-radius: 0.75rem;
        transition: all 0.2s ease;
        font-weight: 500;
    }
    
    button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Menu button positioning for PC */
    #menuButton {
        position: absolute !important;
        top: 1rem !important; /* Changed from top: 0 to match userMenuButton */
        right: 1rem !important; /* Changed from right: 0 to match userMenuButton */
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    #menuButton:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    /* User Menu button positioning for PC - matching menu button */
    #userMenuButton {
        position: absolute !important;
        top: 1rem !important;
        left: 1rem !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    #userMenuButton:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    /* Perfect centering for user avatar text */
    #userMenuAvatar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        text-align: center !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Ensure text is perfectly centered */
    #userMenuAvatar span,
    #userMenuAvatar {
        text-indent: 0 !important;
        letter-spacing: 0 !important;
    }
    
    /* Force perfect centering */
    #userMenuAvatar span {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Side Menu Styles */
#sideMenu {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#sideMenu .transform {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

/* Instructions Modal Styles */
#instructionsModal .bg-white {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Migration Modal Styles */
#migrationModal .bg-white {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Enhanced feedback bubble styles */
#feedbackBubble {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#feedbackBubble:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#feedbackBubble:active {
    transform: scale(0.98);
    transition: all 0.1s ease-in-out;
}

/* Mobile-specific feedback bubble positioning */
@media (max-width: 768px) {
    #feedbackBubble {
        bottom: 5rem !important; /* Above mobile navigation bar (3.5rem) + extra space */
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
        z-index: 50; /* Higher than mobile navigation */
    }
}

/* Desktop-specific feedback bubble positioning */
@media (min-width: 769px) {
    #feedbackBubble {
        bottom: 6rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
    }
}

/* Mobile Bottom Navigation Styles (Mobile Style) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 0.25rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 40;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 0.5rem;
    min-width: 3.5rem;
}

.mobile-bottom-nav .nav-item:hover {
    color: #4f46e5;
    background-color: #f3f4f6;
}

.mobile-bottom-nav .nav-item.active {
    color: #4f46e5;
    background-color: #eef2ff;
}

.mobile-bottom-nav .nav-icon {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.mobile-bottom-nav .nav-text {
    font-size: 0.625rem;
    font-weight: 500;
    text-align: center;
}

/* Add padding to body to prevent content from being hidden behind mobile navigation */
@media (max-width: 1023px) {
    body {
        padding-bottom: 4rem;
    }
}

/* Hide desktop tabs on mobile */
@media (max-width: 1023px) {
    .desktop-tabs {
        display: none;
    }
} 

/* Estilos personalizados para botones de autenticación */
.auth-button-primary {
    background: linear-gradient(to right, #4f46e5, #7c3aed) !important;
    color: white !important;
    border: none !important;
}

.auth-button-primary:hover {
    background: linear-gradient(to right, #4338ca, #6d28d9) !important;
}

.auth-button-success {
    background: linear-gradient(to right, #16a34a, #059669) !important;
    color: white !important;
    border: none !important;
}

.auth-button-success:hover {
    background: linear-gradient(to right, #15803d, #047857) !important;
}

.auth-button-danger {
    background: linear-gradient(to right, #dc2626, #ec4899) !important;
    color: white !important;
    border: none !important;
}

.auth-button-danger:hover {
    background: linear-gradient(to right, #b91c1c, #db2777) !important;
}

/* Override de Tailwind para botones específicos */
#authRequiredOverlay button[onclick*="login"] {
    background: linear-gradient(to right, #4f46e5, #7c3aed) !important;
    color: white !important;
    border: none !important;
}

#authRequiredOverlay button[onclick*="register"] {
    background: linear-gradient(to right, #16a34a, #059669) !important;
    color: white !important;
    border: none !important;
}

/* Asegurar que los botones del modal tengan colores correctos */
#authModal button[type="submit"] {
    background: linear-gradient(to right, #4f46e5, #7c3aed) !important;
    color: white !important;
    border: none !important;
}

#authModal #registerForm button[type="submit"] {
    background: linear-gradient(to right, #16a34a, #059669) !important;
    color: white !important;
    border: none !important;
}

#authModal #editProfileBtn {
    background: linear-gradient(to right, #4f46e5, #7c3aed) !important;
    color: white !important;
    border: none !important;
}

#authModal #signOutBtn {
    background: linear-gradient(to right, #dc2626, #ec4899) !important;
    color: white !important;
    border: none !important;
}

#authModal #profileEditForm button[type="submit"] {
    background: linear-gradient(to right, #4f46e5, #7c3aed) !important;
    color: white !important;
    border: none !important;
}

#authModal #cancelEditProfileBtn {
    background: #6b7280 !important;
    color: white !important;
    border: none !important;
}

#authModal #cancelEditProfileBtn:hover {
    background: #4b5563 !important;
} 

:root {
    /* Colores principales */
    --primary-600: #4F46E5;
    --primary-700: #4338CA;
    --primary-800: #3730A3;
    
    /* Colores secundarios */
    --secondary-600: #7C3AED;
    --secondary-700: #6D28D9;
    
    /* Colores de estado */
    --success-600: #059669;
    --warning-600: #D97706;
    --error-600: #DC2626;
    
    /* Colores neutros */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

/* Botones consistentes */
.btn-primary {
    background-color: var(--primary-600);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-600);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--secondary-700);
    transform: translateY(-1px);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    #authButton {
        position: absolute;
        top: 1rem;
        right: 4rem;
        z-index: 40;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .menu-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 50;
    }
    
    .bg-gradient-to-r.from-indigo-600.to-purple-600 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== ONBOARDING MOBILE OPTIMIZATIONS ===== */
@media (max-width: 640px) {
    /* Onboarding modal mobile optimizations */
    #onboardingModal {
        padding: 0.5rem !important;
    }
    
    #onboardingModal .bg-white {
        border-radius: 0.75rem !important;
        max-height: 98vh !important;
    }
    
    /* Onboarding content mobile optimizations */
    #onboardingContent {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    #onboardingContent h3,
    #onboardingContent h4 {
        line-height: 1.3;
        word-break: break-word;
    }
    
    #onboardingContent p {
        line-height: 1.4;
        word-break: break-word;
    }
    
    /* Ensure proper touch targets */
    #onboardingModal button {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Grid optimizations for mobile */
    #onboardingContent .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    #onboardingContent .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Flex optimizations for mobile */
    #onboardingContent .flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Text size optimizations */
    #onboardingContent .text-xs {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    #onboardingContent .text-sm {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    /* Spacing optimizations */
    #onboardingContent .space-y-3 > * + * {
        margin-top: 0.75rem;
    }
    
    #onboardingContent .space-y-4 > * + * {
        margin-top: 1rem;
    }
    
    #onboardingContent .space-y-6 > * + * {
        margin-top: 1.5rem;
    }
    
    /* Padding optimizations */
    #onboardingContent .p-3 {
        padding: 0.75rem;
    }
    
    #onboardingContent .p-4 {
        padding: 1rem;
    }
    
    #onboardingContent .p-6 {
        padding: 1.25rem;
    }
    
    /* Icon size optimizations */
    #onboardingContent .text-2xl {
        font-size: 1.5rem;
    }
    
    #onboardingContent .text-3xl {
        font-size: 1.875rem;
    }
    
    #onboardingContent .text-4xl {
        font-size: 2.25rem;
    }
    
    /* Welcome message mobile optimizations */
    #welcomeMessage {
        max-width: calc(100vw - 1rem) !important;
        margin: 0.5rem !important;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    #onboardingModal {
        padding: 0.25rem !important;
    }
    
    #onboardingModal .bg-white {
        border-radius: 0.5rem !important;
        max-height: 99vh !important;
    }
    
    #onboardingContent {
        font-size: 0.8125rem;
    }
    
    #onboardingContent .text-xs {
        font-size: 0.6875rem;
    }
    
    #onboardingContent .text-sm {
        font-size: 0.8125rem;
    }
    
    #onboardingContent .p-3 {
        padding: 0.5rem;
    }
    
    #onboardingContent .p-4 {
        padding: 0.75rem;
    }
    
    #onboardingContent .p-6 {
        padding: 1rem;
    }
    
    /* Even smaller icons for very small screens */
    #onboardingContent .text-2xl {
        font-size: 1.25rem;
    }
    
    #onboardingContent .text-3xl {
        font-size: 1.5rem;
    }
    
    #onboardingContent .text-4xl {
        font-size: 1.875rem;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    #onboardingModal .bg-white {
        max-height: 95vh !important;
    }
    
    #onboardingContent {
        max-height: 50vh !important;
    }
    
    #onboardingContent .space-y-6 > * + * {
        margin-top: 1rem;
    }
    
    #onboardingContent .space-y-4 > * + * {
        margin-top: 0.75rem;
    }
}

/* Ideas module responsive improvements */
@media (max-width: 480px) {
    /* Ideas header improvements for very small screens */
    #ideasViewSelector {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
        min-width: 120px !important;
    }
    
    /* Ideas count text adjustments */
    .text-sm.text-gray-500 {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    /* Ideas container padding adjustments */
    .bg-white.border.border-gray-200.rounded-lg.p-4 {
        padding: 0.75rem !important;
    }
    
    /* Ideas list spacing adjustments */
    #ideasList.space-y-3 > * + * {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 360px) {
    /* Extra small screens - further optimizations */
    #ideasViewSelector {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        min-width: 100px !important;
    }
    
    /* Reduce icon size for very small screens */
    .text-4xl {
        font-size: 1.5rem !important;
    }
    
    /* Ideas container further padding reduction */
    .bg-white.border.border-gray-200.rounded-lg.p-4 {
        padding: 0.5rem !important;
    }
} 