/* Apuana Management Hub - Custom Styles */

/* ===== Variables ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== Global ===== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== Avatars ===== */
.avatar-xs,
.avatar-sm,
.avatar-md,
.avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    text-transform: uppercase;
}

.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

/* ===== Stat Icons ===== */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===== Status Badges ===== */
.status-todo {
    background-color: #6c757d;
    color: white;
}

.status-in_progress {
    background-color: #0dcaf0;
    color: #000;
}

.status-in_review {
    background-color: #6f42c1;
    color: white;
}

.status-done {
    background-color: #198754;
    color: white;
}

.status-blocked {
    background-color: #dc3545;
    color: white;
}

/* ===== Priority Badges ===== */
.priority-highest {
    background-color: #dc3545;
    color: white;
}

.priority-high {
    background-color: #fd7e14;
    color: #000;
}

.priority-medium {
    background-color: #ffc107;
    color: #000;
}

.priority-low {
    background-color: #0d6efd;
    color: white;
}

.priority-lowest {
    background-color: #6c757d;
    color: white;
}

/* ===== Cards ===== */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* ===== Tables ===== */
.table-dark {
    --bs-table-bg: transparent;
}

.table-dark thead {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* ===== HTMX Loading States ===== */
.htmx-loading {
    position: relative;
    pointer-events: none;
}

.htmx-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* ===== Timeline ===== */
.timeline-item {
    position: relative;
    padding-left: 0;
}

/* ===== Form Controls ===== */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ===== Navbar ===== */
.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link.active {
    color: #667eea !important;
}

/* ===== Scrollbar (WebKit) ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1d21;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

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

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

/* ===== Modal ===== */
.modal-content {
    animation: fadeIn 0.2s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .avatar-lg {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}
