/* RET Widget Shared Styles - Microsoft Fluent 2 Design */

:root {
    /* RET Huisstijl Kleuren */
    --ret-blue: #009DDB;
    --ret-red: #ED1A2D;
    --ret-grey: #6D6E71;
    --ret-light-blue: #33B1E5;
    --ret-dark-blue: #007BB5;

    /* Fluent 2 Neutral Palette */
    --neutral-0: #FFFFFF;
    --neutral-10: #F5F5F5;
    --neutral-20: #E0E0E0;
    --neutral-30: #C7C7C7;
    --neutral-40: #A8A8A8;
    --neutral-50: #8A8A8A;
    --neutral-60: #6D6E71;
    --neutral-70: #505050;
    --neutral-80: #3B3B3B;
    --neutral-90: #2B2B2B;
    --neutral-100: #1A1A1A;

    /* Typography - Fluent 2 */
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --font-size-caption: 12px;
    --font-size-body: 14px;
    --font-size-subtitle: 16px;
    --font-size-title: 20px;
    --font-size-display: 28px;

    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing - 8dp grid */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Border Radius - Fluent 2 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Elevation - Material inspired */
    --elevation-1: 0 2px 4px rgba(0, 0, 0, 0.08);
    --elevation-2: 0 4px 8px rgba(0, 0, 0, 0.12);
    --elevation-4: 0 8px 16px rgba(0, 0, 0, 0.16);
    --elevation-8: 0 16px 32px rgba(0, 0, 0, 0.20);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    color: var(--neutral-90);
    background: transparent;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Widget Container */
.widget {
    background: transparent;
    padding: var(--spacing-md);
    height: 100%;
}

/* Widget Header */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--neutral-20);
}

.widget-title {
    font-size: var(--font-size-title);
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-90);
}

.widget-subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-80);
    margin-bottom: var(--spacing-sm);
}

/* Icon Styles */
.icon {
    width: 20px;
    height: 20px;
    fill: var(--ret-blue);
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-semibold);
    background: var(--neutral-10);
    color: var(--neutral-70);
}

.badge-primary {
    background: var(--ret-blue);
    color: var(--neutral-0);
}

.badge-accent {
    background: var(--ret-red);
    color: var(--neutral-0);
}

.badge-success {
    background: #10893E;
    color: var(--neutral-0);
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.button-primary {
    background: var(--ret-blue);
    color: var(--neutral-0);
}

.button-primary:hover {
    background: var(--ret-dark-blue);
    box-shadow: var(--elevation-2);
}

.button-secondary {
    background: var(--neutral-10);
    color: var(--neutral-80);
}

.button-secondary:hover {
    background: var(--neutral-20);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--neutral-20);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--ret-blue);
    border-radius: var(--radius-sm);
    transition: width var(--transition-slow);
}

/* List Items */
.list-item {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.list-item:hover {
    background: var(--neutral-10);
}

.list-item + .list-item {
    margin-top: var(--spacing-sm);
}

/* Card */
.card {
    background: var(--neutral-0);
    border: 1px solid var(--neutral-20);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: var(--ret-blue);
    box-shadow: var(--elevation-1);
}

/* Status Indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: var(--spacing-xs);
}

.status-success {
    background: #10893E;
}

.status-warning {
    background: #FFB900;
}

.status-error {
    background: var(--ret-red);
}

.status-info {
    background: var(--ret-blue);
}

/* Utilities */
.text-muted {
    color: var(--neutral-60);
}

.text-small {
    font-size: var(--font-size-caption);
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-between {
    justify-content: space-between;
    align-items: center;
}

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
