/* assets/css/components.css */
/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.stat-icon i {
    font-size: 1rem;
    color: var(--primary);
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.65rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 600;
}

/* Tabs Navigation - 50px border radius */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    min-height: 48px;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tab-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* Search Bar - 50px border radius */
.search-wrapper {
    min-width: 320px;
}

.search-wrapper .input-group {
    height: 48px;
}

.search-wrapper .input-group-text {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-right: none;
    border-radius: 50px 0 0 50px;
    padding: 0 1rem;
    height: 100%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.search-wrapper .form-control {
    border: 1px solid var(--gray-200);
    border-left: none;
    border-right: none;
    font-size: 0.85rem;
    height: 100%;
    padding: 0 0.5rem;
    background: var(--white);
    color: var(--gray-700);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.search-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
    outline: none;
}

.search-wrapper .btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0 50px 50px 0;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    color: white;
}

.search-wrapper .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Utility classes */
.tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    color: var(--gray-600);
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.section-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}