/* style.css - Premium Restored Version */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    --bg-dark: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold-primary: #d4af37;
    --gold-hover: #fcd34d;
    --text-main: #f8fafc;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    /* Decorative background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Basic glass panel class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Modern input fields */
.input-modern {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: white;
    transition: all 0.3s ease;
}

.input-modern:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Golden buttons */
.btn-primary {
    background: linear-gradient(135deg, #b4932c 0%, #d4af37 100%);
    color: #0f172a;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.4);
}

/* Crown floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating-icon { animation: float 6s ease-in-out infinite; }

/* Sidebar navigation */
.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}
.nav-item:hover i, .nav-item.active i {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Completed tasks formatting */
select:disabled {
    opacity: 0.9;
    cursor: not-allowed !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Different status effects */
.border-green-500\/50 {
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
}

.border-blue-500\/50 {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.border-yellow-500\/50 {
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.15);
}

/* Improve dropdown menus by status */
select.bg-green-600 {
    font-weight: bold;
}

select.bg-blue-600 {
    font-weight: bold;
}

select.bg-yellow-600 {
    font-weight: bold;
}

/* View Task Modal Styles */
#viewTaskModal .glass-panel {
    transition: all 0.3s ease;
}

#viewTaskModal .glass-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Smooth modal appearance */
#viewTaskModal:not(.hidden) {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* View button hover effect */
button[onclick^="viewTaskDetails"] {
    position: relative;
    overflow: hidden;
}

button[onclick^="viewTaskDetails"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[onclick^="viewTaskDetails"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Delete Task Button Styles */
#deleteTaskSection button {
    position: relative;
    overflow: hidden;
}

#deleteTaskSection button::after {
    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.4s, height 0.4s;
}

#deleteTaskSection button:hover::after {
    width: 400px;
    height: 400px;
}

#deleteTaskSection button i {
    position: relative;
    z-index: 1;
}

#deleteTaskSection button span {
    position: relative;
    z-index: 1;
}

/* Warning animation for delete button */
@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 10px 20px -10px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.7);
    }
}

#deleteTaskSection button:hover {
    animation: warningPulse 2s ease-in-out infinite;
}