/* components.css */
.module-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.breadcrumb a {
    color: var(--text-muted);
}

.action-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.save-status {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.module-progress {
    width: 100%;
    height: 4px;
    background-color: var(--surface-color);
    margin-bottom: var(--space-lg);
    border-radius: 2px;
    overflow: hidden;
}

.module-progress .progress-bar {
    height: 100%;
    background-color: var(--success-color);
    transition: width var(--transition-normal);
}

.module-body {
    flex-grow: 1;
}

/* Skeleton Loading */
.loading-skeleton {
    padding: var(--space-xl);
}
.skeleton {
    background-color: var(--surface-color);
    border-radius: var(--radius-sm);
}
.pulse {
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.kpi-card {
    background-color: var(--surface-color);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.kpi-title {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.kpi-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.kpi-trend {
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    background-color: var(--surface-color);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 250px;
}

.toast-success { border-color: var(--success-color); }
.toast-error { border-color: var(--danger-color); }
.toast-warning { border-color: var(--warning-color); }

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}
