/* Global Styles - Helpdesk Enterprise Premium */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --bg-main: #f8fafc;
    --sidebar-bg: #1e293b;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

:root.dark {
    --bg-main: #0f172a;
    --sidebar-bg: #020617;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
}

body {
    background-color: var(--bg-main);
    color: #1e293b;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    color: #f8fafc;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sidebar Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.sidebar-link svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

/* Custom Buttons */
.btn-premium {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Timeline Custom Styles */
.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e2e8f0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.4rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-main {
    animation: fadeInSlide 0.4s ease-out forwards;
}

.premium-card {
    background: white;
    border-radius: 1.5rem; /* Larger border radius for modern look */
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .premium-card {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dark .premium-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.8), 0 8px 10px -6px rgb(0 0 0 / 0.8);
}

/* Tailwind Dark Mode Overrides */
.dark .text-slate-900,
.dark .text-slate-800,
.dark .text-slate-700 {
    color: #f8fafc !important;
}

.dark .text-slate-600,
.dark .text-slate-500 {
    color: #cbd5e1 !important;
}

.dark .text-slate-400 {
    color: #94a3b8 !important;
}

.dark .bg-white {
    background-color: #1e293b !important;
}

.dark .bg-slate-50,
.dark .bg-slate-100 {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.dark .bg-slate-200 {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}

.dark .border-slate-100,
.dark .border-slate-200 {
    border-color: #334155 !important;
}

/* Fix table row hover in dark mode */
.dark tr.hover\:bg-slate-50:hover {
    background-color: #334155 !important;
}

/* Typography elements in dark mode */
.dark .prose {
    color: #cbd5e1;
}
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4, .dark .prose strong {
    color: #f8fafc;
}

/* Form Elements in Dark Mode */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark textarea,
.dark select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #64748b !important;
}
