@import url("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.min.css");

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Ensure Font Awesome Icons Display */
i[class*="fa-"] {
    display: inline-block;
    line-height: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================================================
     Light glassmorphism admin theme utilities
     ================================================== */
:root {
    --admin-bg: #f6f7fb;
    --panel: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(16, 24, 40, 0.06);
    --accent: #7b6fe8;
    --accent-2: #ff8a5b;
    --text-strong: #0b1220;
    --text-muted: #6b7280;
    --radius-lg: 14px;
}

.glass {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.86),
        rgba(250, 250, 250, 0.82)
    );
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 18px rgba(12, 18, 32, 0.06);
    border-radius: var(--radius-lg);
}

.ui-btn {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(123, 111, 232, 0.12);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        opacity 0.12s ease;
}
.ui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(123, 111, 232, 0.16);
}
.ui-btn:active {
    transform: translateY(0);
}

.soft-appear {
    transform: translateY(6px);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.soft-appear.entered {
    transform: none;
    opacity: 1;
}

/* Sidebar active indicator */
.sidebar a {
    position: relative;
}
.sidebar a.active::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--accent);
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .soft-appear,
    .ui-btn {
        transition: none !important;
    }
}

/* Fix double dropdown arrows in select elements */
select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}
select::-ms-expand {
    display: none !important;
}

