/* ======================================
   TASKFLOW PRO - ENTERPRISE EDITION
   Advanced CSS with 2D Objects & Animations
   ====================================== */

/* ======================================
   ADVANCED LOADING SCREEN
   ====================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f3b36 0%, #22577a 50%, #0f3b36 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Background Animation */
.loading-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.loading-sphere {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 163, 165, 0.2), rgba(129, 178, 154, 0.2));
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatLoading 6s ease-in-out infinite;
}

.loading-sphere.sphere-1 {
    width: 300px;
    height: 300px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.loading-sphere.sphere-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -5%;
    animation-delay: -2s;
    animation-duration: 10s;
}

.loading-sphere.sphere-3 {
    width: 150px;
    height: 150px;
    bottom: -5%;
    left: 30%;
    animation-delay: -4s;
    animation-duration: 12s;
}

.loading-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridFloat 15s ease-in-out infinite;
}

/* Loading Content */
.loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

/* Brand Section */
.loading-brand {
    margin-bottom: 50px;
    animation: brandSlideUp 1s ease-out;
}

.loading-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.logo-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #22577a, #38a3a5);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: logoSpin 3s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(56, 163, 165, 0.3);
}

.logo-icon i {
    font-size: 40px;
    color: white;
    animation: iconFloat 2s ease-in-out infinite alternate;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 25px;
    background: linear-gradient(135deg, #22577a, #38a3a5);
    opacity: 0.4;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38a3a5, #81b29a, #c4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: subtitleFade 2s ease-in-out infinite alternate;
}

/* Loading Animation Bars */
.loading-animation {
    margin: 40px 0;
    animation: animationSlideIn 1s ease-out 0.3s both;
}

.loading-bars {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 8px;
    height: 60px;
}

.bar {
    width: 8px;
    background: linear-gradient(to top, #22577a, #38a3a5);
    border-radius: 4px;
    animation: barDance 1.2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(56, 163, 165, 0.5);
}

.bar-1 { animation-delay: 0s; }
.bar-2 { animation-delay: 0.1s; }
.bar-3 { animation-delay: 0.2s; }
.bar-4 { animation-delay: 0.3s; }
.bar-5 { animation-delay: 0.4s; }

/* Progress Indicator */
.loading-progress {
    margin: 40px 0;
    animation: progressSlideIn 1s ease-out 0.6s both;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22577a, #38a3a5, #81b29a);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 1.5s ease-in-out infinite;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Loading Messages */
.loading-messages {
    margin-top: 30px;
    animation: messagesSlideIn 1s ease-out 0.9s both;
}

.loading-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0;
}

.loading-message.active {
    opacity: 1;
    animation: messageGlow 2s ease-in-out infinite alternate;
}

/* Decorative Particles */
.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #38a3a5, #81b29a);
    border-radius: 50%;
    animation: particleFloat 4s linear infinite;
    box-shadow: 0 0 10px rgba(56, 163, 165, 0.6);
}

.particle-1 { left: 10%; animation-delay: 0s; animation-duration: 4s; }
.particle-2 { left: 20%; animation-delay: 0.5s; animation-duration: 5s; }
.particle-3 { left: 80%; animation-delay: 1s; animation-duration: 3.5s; }
.particle-4 { left: 70%; animation-delay: 1.5s; animation-duration: 4.5s; }
.particle-5 { left: 40%; animation-delay: 2s; animation-duration: 3s; }
.particle-6 { left: 60%; animation-delay: 2.5s; animation-duration: 5.5s; }

/* ======================================
   LOADING ANIMATIONS
   ====================================== */

@keyframes floatLoading {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(15px) rotate(5deg); }
    50% { transform: translateY(-20px) translateX(-10px) rotate(-3deg); }
    75% { transform: translateY(-40px) translateX(5px) rotate(2deg); }
}

@keyframes gridFloat {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-15px) translateY(-20px); }
    75% { transform: translateX(10px) translateY(-5px); }
}

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

@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes iconFloat {
    from { transform: translateY(0px); }
    to { transform: translateY(-5px); }
}

@keyframes logoPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

@keyframes titleGlow {
    from { filter: brightness(1) drop-shadow(0 0 10px rgba(56, 163, 165, 0.3)); }
    to { filter: brightness(1.2) drop-shadow(0 0 20px rgba(129, 178, 154, 0.5)); }
}

@keyframes subtitleFade {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

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

@keyframes barDance {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

@keyframes progressSlideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

@keyframes messageGlow {
    from { text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
}

@keyframes particleFloat {
    0% { 
        transform: translateY(100vh) translateX(0px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% { 
        transform: translateY(-10vh) translateX(0px) scale(0);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-content {
        padding: 20px;
    }
    
    .loading-title {
        font-size: 2.5rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
    }
    
    .logo-icon i {
        font-size: 30px;
    }
    
    .loading-bars {
        height: 40px;
    }
    
    .loading-sphere {
        display: none;
    }
}

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties - Professional Green & Bronze Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #22577a 0%, #38a3a5 100%);
    --secondary-gradient: linear-gradient(135deg, #c4a574 0%, #ddbea9 100%);
    --success-gradient: linear-gradient(135deg, #7db46c 0%, #a8dadc 100%);
    --danger-gradient: linear-gradient(135deg, #c85a54 0%, #f4a261 100%);
    --accent-gradient: linear-gradient(135deg, #81b29a 0%, #a8dadc 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Custom Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(56, 163, 165, 0.3); }
    50% { box-shadow: 0 0 40px rgba(56, 163, 165, 0.6); }
}

@keyframes slide-in-right {
    from { transform: translateX(100%) scale(0.8); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes slide-in-left {
    from { transform: translateX(-100%) scale(0.8); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes scale-in {
    from { transform: scale(0.5) rotate(-180deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bounce-in {
    0% { transform: scale(0.3) translateY(-100px); opacity: 0; }
    50% { transform: scale(1.05) translateY(-10px); }
    70% { transform: scale(0.9) translateY(0px); }
    100% { transform: scale(1) translateY(0px); opacity: 1; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ======================================
   ANIMATED BACKGROUND & 2D OBJECTS
   ====================================== */

.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-sphere {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 163, 165, 0.1), rgba(129, 178, 154, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.sphere-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.sphere-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
    animation-duration: 10s;
}

.sphere-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 50%;
    animation-delay: -8s;
    animation-duration: 14s;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

/* ======================================
   PROFESSIONAL TASK COMPONENTS
   ====================================== */

.task-item-enterprise {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: slide-in-right 0.6s ease-out;
}

.task-item-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.task-item-enterprise:hover::before {
    left: 100%;
}

.task-item-enterprise:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 163, 165, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(56, 163, 165, 0.3);
}

.task-item-enterprise.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.task-item-enterprise.completed:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(34, 197, 94, 0.3);
}

/* Advanced Checkbox Design */
.checkbox-enterprise {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.checkbox-enterprise:hover {
    border-color: rgba(56, 163, 165, 0.7);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(56, 163, 165, 0.4);
}

.checkbox-enterprise.checked {
    background: linear-gradient(135deg, #22577a, #38a3a5);
    border-color: #22577a;
    transform: scale(1.1);
    animation: bounce-in 0.6s ease;
}

.checkbox-enterprise.checked i {
    color: white;
    font-size: 14px;
    animation: scale-in 0.4s ease 0.2s both;
}

/* Professional Modal Enhancements */
.modal-enterprise {
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.7);
}

.modal-content-enterprise {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    animation: scale-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Enhanced Toast Notifications */
.toast-enterprise {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    animation: slide-in-right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    min-width: 350px;
}

.toast-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

.toast-enterprise.success::before {
    background: var(--success-gradient);
}

.toast-enterprise.danger::before {
    background: var(--danger-gradient);
}

.toast-enterprise.warning::before {
    background: var(--secondary-gradient);
}

/* ======================================
   FILTER BUTTON ENHANCEMENTS
   ====================================== */

.filter-btn.active {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(56, 163, 165, 0.4);
    animation: pulse-glow 2s infinite;
}

.filter-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(56, 163, 165, 0.5) !important;
    transform: translateY(-2px);
}

/* ======================================
   PRODUCTIVITY SCORE ANIMATION
   ====================================== */

.productivity-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.productivity-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.productivity-ring circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.productivity-ring .progress-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.productivity-ring .progress-bar {
    stroke: url(#gradient);
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1s ease-in-out;
}

/* ======================================
   RESPONSIVE ENHANCEMENTS
   ====================================== */

@media (max-width: 768px) {
    .floating-sphere {
        display: none;
    }
    
    .task-item-enterprise {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 12px;
    }
    
    .checkbox-enterprise {
        width: 24px;
        height: 24px;
    }
    
    .toast-enterprise {
        min-width: 280px;
        margin: 8px;
    }
    
    /* Enhanced Mobile Optimizations */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Mobile-specific button improvements */
    .filter-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    /* Improved modal sizing for mobile */
    .modal-content-enterprise {
        margin: 20px !important;
        max-width: calc(100vw - 40px) !important;
        max-height: calc(100vh - 40px) !important;
    }
    
    /* Better input sizing */
    #taskInput {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 14px 20px !important;
        min-height: 44px !important;
    }
    
    /* Improved add button */
    #addTaskBtn {
        min-height: 44px !important;
        padding: 12px 24px !important;
    }
    
    /* Better task action buttons */
    .task-actions button {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
    }
}

/* ======================================
   ENHANCED MOBILE BREAKPOINTS
   ====================================== */

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-content {
        padding: 16px;
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Stack filter buttons vertically on very small screens */
    .btn-group {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .filter-btn {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    
    /* Adjust task card spacing */
    .task-item-enterprise {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    /* Improve toast positioning */
    .toast-enterprise {
        min-width: 260px;
        margin: 6px;
        font-size: 13px;
    }
}

/* Large mobile devices and small tablets (480px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        min-width: 140px;
    }
}

/* ======================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   ====================================== */

/* Improve focus states for keyboard navigation */
@media (max-width: 768px) {
    button:focus,
    input:focus,
    .task-item-enterprise:focus {
        outline: 3px solid #38a3a5;
        outline-offset: 2px;
    }
    
    /* Improve hover states for touch devices */
    @media (hover: none) {
        .task-item-enterprise:hover {
            transform: none;
        }
        
        .checkbox-enterprise:hover {
            transform: scale(1.1);
        }
        
        .filter-btn:hover {
            transform: none;
        }
    }
}

/* ======================================
   PERFORMANCE OPTIMIZATIONS
   ====================================== */

.task-item-enterprise,
.checkbox-enterprise,
.toast-enterprise {
    will-change: transform;
}

.floating-sphere,
.grid-pattern {
    will-change: transform;
    contain: layout style;
}

/* ======================================
   ACCESSIBILITY ENHANCEMENTS
   ====================================== */

@media (prefers-reduced-motion: reduce) {
    .floating-sphere,
    .grid-pattern {
        animation: none;
    }
    
    .task-item-enterprise,
    .checkbox-enterprise,
    .toast-enterprise {
        transition-duration: 0.15s;
    }
}

/* ======================================
   DARK MODE ENHANCEMENTS
   ====================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* ======================================
   PRINT STYLES
   ====================================== */

/* Toast Progress Animation */
@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Additional Professional Animations */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Task List Layout Fix */
#tasksList {
    display: block !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Task Row Styling */
.task-row {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
}

/* Clear any conflicting flexbox/grid styles */
.task-row * {
    box-sizing: border-box;
}

/* Force vertical stacking */
.task-item-enterprise,
.checkbox-enterprise {
    position: relative !important;
    display: block !important;
}

/* Override any Bootstrap/Tailwind conflicts */
#tasksList > * {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: static !important;
    float: none !important;
    clear: both !important;
}

/* Force proper task layout */
.task-row,
.task-item,
.task-item-enterprise,
[data-task-id] {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Ensure no flex/grid interference */
#tasksList {
    display: block !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* ======================================
   PRINT STYLES
   ====================================== */

@media print {
    .floating-sphere,
    .grid-pattern,
    .geometric-bg {
        display: none;
    }
    
    .task-item-enterprise {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
} 