/* Campaign Track Page - Minimal & Professional */

.campaign-track-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-back {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.header-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.widget-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

/* Status Widget */
.status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
}

.status-badge-large {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-active {
    background: #DCFCE7;
    color: #15803D;
}

.status-draft {
    background: #F3F4F6;
    color: #6B7280;
}

.status-completed {
    background: #E0E7FF;
    color: #4338CA;
}

/* Metrics Grid */
.metrics-grid-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-display-large {
    text-align: center;
    padding: 1rem 0;
}

.metric-value-large {
    font-size: 3rem;
    font-weight: 700;
    color: #7B1FA2;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label-large {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

.metric-trend {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-up {
    color: #15803D;
}

.trend-good {
    color: #7B1FA2;
}

.trend-low {
    color: #DC2626;
}

/* Performance Visual */
.performance-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.performance-bar-large {
    width: 100%;
    height: 2rem;
    background: #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
    transition: width 0.6s ease;
    border-radius: 12px;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    background: #F9FAFB;
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #E5E7EB;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.9375rem;
    color: #111827;
    font-weight: 500;
}

/* Loading & Error States */
.loading-spinner {
    text-align: center;
    padding: 4rem;
    font-size: 1rem;
    color: #6B7280;
}

.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.error-state h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.error-state p {
    font-size: 1rem;
    color: #6B7280;
    margin: 0 0 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-track-page {
        padding: 1rem;
    }

    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .metrics-grid-track {
        grid-template-columns: 1fr;
    }

    .performance-stats {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}
