/* TaskMaster Pro - Enhanced Styles */

/* Custom Tailwind Configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--primary-gradient);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Glass Morphism Effects */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.glass-subtle {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced Gradients */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Floating Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    33% { 
        transform: translateY(-10px) rotate(1deg);
        opacity: 1;
    }
    66% { 
        transform: translateY(-5px) rotate(-1deg);
        opacity: 0.9;
    }
}

@keyframes floatReverse {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(15px) rotate(2deg);
        opacity: 0.8;
    }
}

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

.floating-bg-1 {
    animation: float 8s ease-in-out infinite;
}

.floating-bg-2 {
    animation: floatReverse 10s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-bg-3 {
    animation: float 12s ease-in-out infinite;
    animation-delay: 4s;
}

/* Enhanced Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Statistics Card Enhancements */
.stats-number {
    color: #1f2937 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 900 !important;
    letter-spacing: -0.025em;
}

.stats-label {
    color: #374151 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem !important;
}

.stats-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 
                0 1px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(147, 51, 234, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 
                0 10px 20px rgba(147, 51, 234, 0.1) !important;
}

/* Enhanced Glass Effect for Main Content */
.glass-effect {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 
                0 1px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(147, 51, 234, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 
                0 10px 20px rgba(147, 51, 234, 0.08) !important;
}

/* Enhanced text contrast for all content */
.content-text {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.content-heading {
    color: #111827 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.content-subtext {
    color: #374151 !important;
    font-weight: 500 !important;
}

.btn-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

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

/* Form Enhancements */
.form-input {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group:hover .form-input {
    border-color: rgb(147 51 234);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Task Status & Priority Styles */
.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-in_progress {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.status-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #86efac 100%);
    color: #047857;
    border: 1px solid #10b981;
}

.priority-low {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #9ca3af;
}

.priority-medium {
    background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
    color: #ea580c;
    border: 1px solid #f97316;
}

.priority-high {
    background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
    color: #dc2626;
    border: 1px solid #ef4444;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    80% {
        opacity: 1;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-scale {
    animation: fadeInScale 0.5s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::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: loading 2s infinite;
}

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

/* Alert Enhancements */
.alert-enter {
    animation: slideInRight 0.3s ease-out;
}

.alert-exit {
    animation: slideInRight 0.3s ease-out reverse;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .glass-effect {
        margin: 0.5rem;
        border-radius: 1rem;
    }
    
    .floating-bg-1,
    .floating-bg-2,
    .floating-bg-3 {
        display: none;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(30, 30, 30, 0.9);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* High Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Focus Styles for Accessibility */
.focus-ring:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .glass-effect {
        background: white;
        border: 1px solid #e5e7eb;
        backdrop-filter: none;
    }
} 