/* THEOMA Brand Palette */
:root {
    --theoma-yellow: #facc15;
    /* Yellow 400 */
    --theoma-yellow-hover: #eab308;
    /* Yellow 500 */
    --theoma-violet: #6d28d9;
    /* Violet 700 */
    --theoma-violet-hover: #5b21b6;
    /* Violet 800 */
}

body {
    font-family: 'Fustat', sans-serif;
    background-color: #f9fafb;
}

.btn-yellow {
    background-color: var(--theoma-yellow);
    color: #1f2937;
    font-weight: 600;
}

.btn-yellow:hover {
    background-color: var(--theoma-yellow-hover);
}

.btn-purple {
    background-color: var(--theoma-violet);
    color: white;
    font-weight: 600;
}

.btn-purple:hover {
    background-color: var(--theoma-violet-hover);
}

.text-theoma-violet {
    color: var(--theoma-violet);
}

.bg-theoma-violet {
    background-color: var(--theoma-violet);
}

.text-theoma-yellow {
    color: var(--theoma-yellow);
}

.bg-theoma-yellow {
    background-color: var(--theoma-yellow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.badge-collab {
    background-color: #f5f3ff;
    /* Violet 50 */
    color: var(--theoma-violet);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2px;
}

.badge-activity {
    background-color: #fefce8;
    /* Yellow 50 */
    color: #854d0e;
    /* Yellow 900 */
    border: 1px solid var(--theoma-yellow);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.table-header-input {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0 24px 0 8px;
    /* Reset vertical padding */
    height: 30px;
    /* Force uniform height */
    /* Added more space on the right for icons */
    font-size: 0.75rem;
    /* Slightly smaller for better fit */
    width: 100%;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.table-header-sort-btn {
    height: 30px;
    width: 30px;
    margin-top: 4px;
    flex-shrink: 0;
}

.table-header-input:focus {
    outline: none;
    border-color: #cbd5e0;
    box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.5);
}

th {
    font-weight: 600;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

tr:hover td {
    background-color: #f8fafc;
}

.row-clickable:hover td {
    background-color: #e2e8f0 !important;
}

/* --- SMOOTH EFFECTS --- */
html {
    scroll-behavior: smooth;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standard smooth transitions for interactive elements */
button,
a,
.dropdown-item,
tr,
.kpi-card,
.chart-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium lift effect for cards and containers */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Height utilities since we use Tailwind v2 CDN */
.h-chart-standard {
    height: 512px !important;
    /* Equivalent to 32rem */
}

.h-chart-tall {
    height: 640px !important;
    /* Equivalent to 40rem */
}