/* Glassmorphism Classes */
.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);
}

.glass-dark {
    background: rgba(30, 41, 59, 0.7); /* slate-800 with alpha */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Gradients */
.bg-gradient-brand {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.bg-gradient-mesh {
    background-color: #f0fdfa;
    background-image: 
        radial-gradient(at 0% 0%, hsla(168,76%,65%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(190,80%,70%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(333,70%,75%,1) 0, transparent 50%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Status Badges */
.badge-critical { @apply bg-red-100 text-red-700; }
.badge-high { @apply bg-orange-100 text-orange-700; }
.badge-medium { @apply bg-blue-100 text-blue-700; }
.badge-low { @apply bg-slate-100 text-slate-700; }

/* Collapsible Sidebar */
#sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    overflow-x: hidden;
}

.sidebar-label {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    white-space: nowrap;
}

#sidebar.collapsed {
    width: 80px;
}

#sidebar.collapsed .sidebar-label {
    opacity: 0;
    visibility: hidden;
    width: 0;
    margin: 0;
}

#sidebar.collapsed .p-6 {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
}

#sidebar.collapsed nav {
    padding-left: 12px;
    padding-right: 12px;
}

#sidebar.collapsed a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 48px;
    margin: 0 auto 4px auto;
}

#sidebar.collapsed a span {
    display: none;
}

#sidebar.collapsed .flex-col.items-center img {
    width: 40px;
}

#sidebar.collapsed .flex-col.items-center span {
    display: none;
}
