/* vAutoStock Dashboard - Custom Styles */
/* Note: Most styling is handled by Tailwind CSS. This file contains custom styles that can't be easily expressed with utility classes. */

/* Skeleton Loader Styles */
.skeleton-loader {
    padding: 0.5rem 0;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.shorter {
    width: 40%;
}

.skeleton-box {
    height: 80px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* KPI Card Skeletons */
.skeleton-kpi {
    height: 90px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.75rem;
}

.skeleton-chart {
    height: 320px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

.skeleton-table-row {
    height: 45px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

/* KPI Cards - Gradient Backgrounds */
.kpi-card {
    text-align: center;
    border: none;
    border-radius: 0.75rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0;
}

.kpi-sublabel {
    font-size: 0.7rem;
    color: #9ca3af;
}

.kpi-card.primary {
    background: linear-gradient(135deg, #175cff 0%, #0d47cc 100%);
    color: white;
}

.kpi-card.primary .kpi-label,
.kpi-card.primary .kpi-sublabel {
    color: rgba(255, 255, 255, 0.8);
}

.kpi-card.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.kpi-card.success .kpi-label,
.kpi-card.success .kpi-sublabel {
    color: rgba(255, 255, 255, 0.8);
}

.kpi-card.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #1f2937;
}

.kpi-card.warning .kpi-label {
    color: #374151;
}

.kpi-card.warning .kpi-sublabel {
    color: #4b5563;
}

.kpi-card.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.kpi-card.info .kpi-label,
.kpi-card.info .kpi-sublabel {
    color: rgba(255, 255, 255, 0.8);
}

.kpi-card.secondary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* Stats Values */
.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 350px;
}

/* Branch Table - Sticky Columns */
.branch-table .sticky {
    position: sticky;
    z-index: 10;
}
