/* MagicUI Premium Styles for Weekly Planner */

:root {
    --magic-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --magic-gradient-2: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --magic-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --magic-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --magic-glass-bg: rgba(255, 255, 255, 0.1);
    --magic-glass-border: rgba(255, 255, 255, 0.2);
    --magic-blur: 20px;
    --animation-duration: 0.3s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Glassmorphism Enhancement */
.glass-pane, .glass-card {
    background: var(--magic-glass-bg) !important;
    backdrop-filter: blur(var(--magic-blur)) !important;
    -webkit-backdrop-filter: blur(var(--magic-blur)) !important;
    border: 1px solid var(--magic-glass-border) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
    transition: all var(--animation-duration) var(--animation-timing);
}

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

.glass-pane::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 50%, rgba(59, 130, 246, 0.05) 100%);
    pointer-events: none;
}

/* Animated Gradient Orbs */
.background-orb {
    filter: blur(120px) !important;
    animation: magic-float 25s infinite ease-in-out !important;
}

#orb1 {
    background: var(--magic-gradient-1) !important;
    width: 600px !important;
    height: 600px !important;
}

#orb2 {
    background: var(--magic-gradient-2) !important;
    width: 500px !important;
    height: 500px !important;
}

@keyframes magic-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(50px, -50px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-30px, 30px) rotate(180deg) scale(0.9); }
    75% { transform: translate(-50px, -30px) rotate(270deg) scale(1.05); }
}

/* Magnetic Buttons Enhancement */
button, .btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

button::before, .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .btn:hover::before {
    width: 300px;
    height: 300px;
}

button:hover, .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 40px -15px rgba(102, 126, 234, 0.7) !important;
}

/* Task Cards - Clean Modern Style */
.task-item {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.task-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.task-item:hover::before {
    transform: translateX(100%);
}

/* Priority Badges Enhancement */
.priority-high {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.4) !important;
    animation: pulse-red 2s infinite;
}

.priority-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.4) !important;
}

.priority-low {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.4) !important;
}

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

/* Input Fields - Clean Style */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="time"],
input[type="date"],
textarea,
select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

/* Modal Enhancement */
.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.5) !important;
    animation: modal-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-appear {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Navigation Enhancement */
#user-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.3s;
}

#user-info:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Animated Title Enhancement */
.animated-title,
.animated-title-large {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

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

/* Hover Glow Effect */
.hover-glow {
    position: relative;
    isolation: isolate;
}

.hover-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-glow:hover::after {
    opacity: 1;
}

/* Particle Effect */
@keyframes particle-float {
    0% { 
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 15s infinite linear;
}

/* Loading Animation Enhancement */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: magic-spin 0.8s linear infinite;
}

@keyframes magic-spin {
    to { transform: rotate(360deg); }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

/* Celebration Enhancement */
.celebration-trophy {
    animation: celebration-bounce 2s infinite, celebration-glow 3s infinite !important;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.5));
}

@keyframes celebration-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.8));
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .glass-pane {
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
    
    .task-item {
        border-radius: 16px !important;
        padding: 16px !important;
    }
}

/* Dark Mode Color Adjustments */
body {
    background: var(--magic-gradient-1) !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="20" cy="60" r="0.5" fill="white" opacity="0.15"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Floating Shapes Background */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShapes 15s infinite linear;
}

@keyframes floatShapes {
    0% { 
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { 
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Progress Ring Styles */
.progress-ring {
    transition: stroke-dashoffset 0.5s ease-in-out;
}

.progress-container {
    width: 96px;
    height: 96px;
    position: relative;
}

/* Add Button Enhancement */
.add-btn {
    background: var(--magic-gradient-2) !important;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(238, 90, 36, 0.4) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}