/* Component Showcase Page Styles */
/* Uses CSS variables from app.css for light/dark mode support */

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    background: transparent;
}

.showcase-header {
    margin-bottom: 40px;
    text-align: center;
}

.showcase-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--fluent-text-primary);
    margin: 0 0 8px 0;
}

.showcase-header p {
    font-size: 16px;
    color: var(--fluent-text-secondary);
    margin: 0;
}

/* Section Styling */
.showcase-section {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--fluent-border-strong);
    box-shadow: var(--glass-shadow);
}

.showcase-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fluent-text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fluent-primary);
}

.showcase-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--fluent-text-secondary);
    margin: 24px 0 16px 0;
}

.showcase-section h3:first-of-type {
    margin-top: 0;
}

/* Component Grid */
.component-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Button Row */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button-row.align-end {
    align-items: flex-end;
}

/* Progress Grid */
.progress-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-item label {
    font-size: 14px;
    font-weight: 500;
    color: var(--fluent-text-secondary);
}

/* Circular Progress Row */
.circular-progress-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
}

.circular-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.circular-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--fluent-text-primary);
}

/* Chip Row */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Avatar Row */
.avatar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-item span:last-child {
    font-size: 12px;
    color: var(--fluent-text-secondary);
}

/* Avatar Group */
.e-avatar-group {
    display: flex;
}

.e-avatar-group .e-avatar {
    margin-left: -12px;
    border: 2px solid var(--fluent-bg-primary);
}

.e-avatar-group .e-avatar:first-child {
    margin-left: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Card Customizations */
.e-card {
    background: var(--glass-bg-subtle) !important;
    border: 1px solid var(--fluent-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.e-card .e-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--fluent-border);
}

.e-card .e-card-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fluent-text-primary);
}

.e-card .e-card-sub-title {
    font-size: 14px;
    color: var(--fluent-text-secondary);
    margin-top: 4px;
}

.e-card .e-card-content {
    padding: 16px;
    color: var(--fluent-text-primary);
}

.e-card .e-card-content p {
    margin: 0;
    line-height: 1.6;
}

.e-card .e-card-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--fluent-border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Info Card */
.info-card .info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

/* Stats Card */
.stats-card .stats-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}

.stats-card .stats-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--fluent-text-primary);
}

.stats-card .stats-label {
    font-size: 14px;
    color: var(--fluent-text-secondary);
    margin-top: 4px;
}

.stats-card .stats-change {
    font-size: 13px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 12px;
}

.stats-card .stats-change.positive {
    background: var(--badge-success-bg);
    color: var(--badge-success-text);
}

.stats-card .stats-change.negative {
    background: var(--badge-danger-bg);
    color: var(--badge-danger-text);
}

/* Profile Card */
.profile-card-demo .profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}

.profile-card-demo h3 {
    margin: 16px 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--fluent-text-primary);
}

.profile-card-demo p {
    margin: 0;
    font-size: 14px;
    color: var(--fluent-text-secondary);
}

.profile-card-demo .profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Avatar Styling */
.e-avatar {
    background-color: var(--fluent-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.e-avatar-xsmall {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.e-avatar-small {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.e-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 4px;
}

.e-avatar-large {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.e-avatar-xlarge {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

.e-avatar-circle {
    border-radius: 50%;
}

/* Toast Customizations */
.e-toast-container {
    margin-top: 60px; /* Below AppBar */
}

/* Message Component Dark Mode Fixes */
.e-message {
    border-radius: 8px;
}

/* Progress Bar Dark Mode */
.e-progressbar {
    border-radius: 4px;
    overflow: hidden;
}

.e-progressbar .e-progressbar-track {
    background: var(--fluent-bg-secondary);
}

/* Chip Dark Mode Fixes */
.e-chip-list .e-chip {
    background: var(--glass-bg-subtle);
    color: var(--fluent-text-primary);
    border: 1px solid var(--fluent-border);
}

.e-chip-list .e-chip:hover {
    background: var(--fluent-bg-secondary);
}

.e-chip-list .e-chip.e-active {
    background: var(--fluent-primary);
    color: white;
    border-color: var(--fluent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-container {
        padding: 16px;
    }

    .showcase-header h1 {
        font-size: 28px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .circular-progress-row {
        justify-content: center;
    }
}
