/* ─── M365 License Manager — Custom Styles ─────────────────── */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgb(15 23 42);
}
::-webkit-scrollbar-thumb {
    background: rgb(71 85 105);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(100 116 139);
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, opacity, box-shadow, transform;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass morphism card */
.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 1rem;
}

/* Sidebar active link */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(148 163 184);
    transition: all 0.2s;
}
.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: rgb(199 210 254);
}
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
    color: rgb(199 210 254);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Table row hover */
.table-row-hover:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Input focus glow */
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Badge pulse for urgent */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.badge-pulse {
    animation: pulse-slow 2s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in {
    animation: fadeInUp 0.4s ease-out;
}

/* Stat card gradient borders */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}
.stat-card.stat-indigo::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.stat-card.stat-emerald::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.stat-card.stat-amber::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.stat-card.stat-red::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}
.stat-card.stat-purple::before {
    background: linear-gradient(90deg, #a855f7, #c084fc);
}
.stat-card.stat-sky::before {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

/* Copy button feedback */
.copy-btn.copied svg {
    color: rgb(34 197 94);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 24rem;
    animation: fadeInUp 0.3s ease-out;
}
.toast.hiding {
    animation: fadeOutDown 0.3s ease-in forwards;
}
@keyframes fadeOutDown {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Sidebar responsive */
@media (max-width: 1024px) {
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 30;
    }
}

/* Light mode / Dark mode handled by Tailwind dark: classes */

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white; color: black; }
}
