/* 
 * AdminCollab.net - Next Generation Design
 * Purple, Blue & Pink Color Scheme with Dark/Light Mode
 */

/* ==================== VARIABLES ==================== */
:root {
    /* Light Mode - Purple, Blue, Pink */
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6;
    --primary-pink: #ec4899;
    --secondary-purple: #a78bfa;
    --secondary-blue: #60a5fa;
    --secondary-pink: #f472b6;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9ff;
    --bg-tertiary: #f3f4f6;
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    
    /* Borders & Dividers */
    --border-color: #e5e7eb;
    --divider-color: #e5e7eb;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(139, 92, 246, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(139, 92, 246, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(139, 92, 246, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(139, 92, 246, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 50%, var(--primary-pink) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-purple) 0%, var(--secondary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-purple: #a78bfa;
    --primary-blue: #60a5fa;
    --primary-pink: #f472b6;
    --secondary-purple: #8b5cf6;
    --secondary-blue: #3b82f6;
    --secondary-pink: #ec4899;
    
    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    /* Borders & Dividers */
    --border-color: #334155;
    --divider-color: #475569;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ==================== BASE STYLES ==================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* ==================== GLASSMORPHISM EFFECTS ==================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== ANIMATED GRADIENTS ==================== */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #8b5cf6, #3b82f6, #ec4899, #6366f1);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* ==================== GLOW EFFECTS ==================== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
                    0 0 40px rgba(59, 130, 246, 0.2),
                    0 0 60px rgba(236, 72, 153, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
                    0 0 60px rgba(59, 130, 246, 0.4),
                    0 0 90px rgba(236, 72, 153, 0.2);
    }
}

.glow-effect {
    animation: pulse-glow 3s ease-in-out infinite;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
                0 0 40px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ==================== MODERN CARDS ==================== */
.modern-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ==================== NEON BORDERS ==================== */
.neon-border {
    position: relative;
    border: 2px solid transparent;
    background: var(--bg-primary);
    border-radius: 1rem;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ==================== FLOATING ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.floating-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* New subtle animations for glassmorphic design */
@keyframes animate-float-slow {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translate(30px, -30px) scale(1.05); 
        opacity: 0.4;
    }
}

@keyframes animate-float-slower {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translate(-40px, 40px) scale(1.08); 
        opacity: 0.35;
    }
}

@keyframes animate-pulse-slow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.25;
    }
}

.animate-float-slow {
    animation: animate-float-slow 20s ease-in-out infinite;
}

.animate-float-slower {
    animation: animate-float-slower 25s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: animate-pulse-slow 15s ease-in-out infinite;
}

/* Fade in animation for navigation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* Slide up animation */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

/* Gradient animation for text */
@keyframes gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 3s ease infinite;
}

/* Text shimmer effect */
@keyframes text-shimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

.animate-text-shimmer {
    animation: text-shimmer 5s linear infinite;
}

/* ==================== TEXT TRUNCATION ==================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== SMOOTH TRANSITIONS ==================== */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

button, a, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-purple), var(--secondary-pink));
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== SHIMMER EFFECT ==================== */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ==================== FADE ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RIPPLE EFFECT ==================== */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
}

.ripple:active::after {
    width: 100px;
    height: 100px;
    animation: ripple 0.6s ease-out;
}

/* ==================== BADGE PULSE ==================== */
@keyframes badge-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.badge-pulse {
    animation: badge-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==================== FOCUS STATES ==================== */
/* Remove ALL outlines by default */
button, a, input, textarea, select {
    outline: none !important;
}

/* Only show focus for keyboard users on form elements */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ==================== STATUS INDICATORS ==================== */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-active {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-pending {
    background-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-closed {
    background-color: #6b7280;
}

/* ==================== ENHANCED CHECKBOX/RADIO ==================== */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-purple);
}

/* ==================== TOOLTIP STYLES ==================== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    min-width: 140px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    border-radius: 12px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -70px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-primary) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ==================== STAR RATING ==================== */
.star-rating {
    display: inline-flex;
    gap: 4px;
}

.star-rating i {
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary-pink);
    filter: drop-shadow(0 2px 4px rgba(236, 72, 153, 0.3));
}

.star-rating i:hover {
    transform: scale(1.2) rotate(10deg);
}

/* ==================== GRADIENT BUTTONS ==================== */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* ==================== CATEGORY CARDS ==================== */
.category-card {
    background: var(--bg-primary);
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.category-card > * {
    position: relative;
    z-index: 1;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 640px) {
    .mobile-hide {
        display: none;
    }
    
    .modern-card:hover {
        transform: none;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    nav, footer, .no-print, .dark-mode-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ==================== DARK MODE TOGGLE BUTTON ==================== */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6);
}

/* ==================== PARTICLE BACKGROUND (Optional) ==================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* ==================== UTILITY CLASSES ==================== */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border-image: var(--gradient-primary) 1;
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .shadow-glow {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

