/* GYM OS - Athletic Performance Design System */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties - Design Tokens */
:root {
    /* Colors - Athletic Palette */
    --color-primary: #FF6B35;
    --color-primary-dark: #E85A29;
    --color-primary-light: #FF8557;
    --color-secondary: #1A1A1D;
    --color-accent: #00D9FF;
    --color-accent-dark: #00B8D4;
    --color-success: #00E676;
    --color-warning: #FFD600;
    --color-danger: #FF3D00;

    /* Neutrals */
    --color-bg: #F5F3F0;
    --color-bg-elevated: #FFFFFF;
    --color-text: #1A1A1D;
    --color-text-secondary: #6B6B6B;
    --color-text-tertiary: #9B9B9B;
    --color-border: #E0DDD8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8557 100%);
    --gradient-accent: linear-gradient(135deg, #00D9FF 0%, #00B8D4 100%);
    --gradient-dark: linear-gradient(135deg, #2A2A2D 0%, #1A1A1D 100%);
    --gradient-mesh: radial-gradient(at 0% 0%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                     radial-gradient(at 100% 100%, rgba(0, 217, 255, 0.15) 0%, transparent 50%);

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Manrope', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(26, 26, 29, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 26, 29, 0.12);
    --shadow-lg: 0 8px 24px rgba(26, 26, 29, 0.16);
    --shadow-xl: 0 16px 48px rgba(26, 26, 29, 0.24);
    --shadow-accent: 0 8px 24px rgba(0, 217, 255, 0.3);
    --shadow-primary: 0 8px 24px rgba(255, 107, 53, 0.3);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Styles */
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

/* Display Text - Large Headers */
.display-text {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.9;
    letter-spacing: 0.02em;
}

/* Diagonal Energy Lines - Signature Element */
.energy-line {
    position: relative;
    overflow: hidden;
}

.energy-line::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 4px;
    background: var(--gradient-primary);
    transform: skewX(-45deg) translateX(50px);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Athletic Cards */
.athletic-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.athletic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.athletic-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg), var(--shadow-primary);
}

.athletic-card:hover::before {
    transform: scaleX(1);
}

/* Stat Cards with Animated Counters */
.stat-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.stat-card:hover::after {
    opacity: 0.05;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-in-up 0.6s var(--transition-bounce);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}

/* Button System */
.btn-primary {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-primary);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1.75rem;
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
}

.btn-accent:hover {
    box-shadow: var(--shadow-lg), var(--shadow-accent);
}

/* Exercise Grid Cards */
.exercise-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.exercise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.exercise-card:hover {
    transform: translateY(-6px) rotate(0.5deg);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
}

.exercise-card:hover::before {
    transform: scaleX(1);
}

/* Video Thumbnail Effects */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2A2A2D 100%);
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.exercise-card:hover .video-thumbnail::after {
    opacity: 1;
}

/* Tags & Badges */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    transition: all var(--transition-fast);
}

.tag-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.tag-accent {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Loading States */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-swapping {
    opacity: 0;
    transition: opacity 200ms ease-out;
}

.htmx-settling {
    opacity: 1;
    transition: opacity 200ms ease-in;
}

button.loading {
    position: relative;
    color: transparent;
}

button.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Navigation Styles */
.nav-link {
    position: relative;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.875rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    border-radius: 0.5rem;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(255, 107, 53, 0.05);
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.08);
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Icon-only nav buttons (Devices, Settings, hamburger)
   Note: display is intentionally NOT set here so Tailwind responsive
   utilities (hidden / xl:hidden / xl:inline-flex) can control visibility. */
.nav-icon {
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.nav-icon:hover {
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.08);
}

.nav-icon.active {
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.12);
}

/* Mobile nav links (shown in hamburger panel) */
.mobile-nav-link {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255, 107, 53, 0.08);
    color: var(--color-primary);
}

.mobile-nav-link.active {
    background: rgba(255, 107, 53, 0.12);
    color: var(--color-primary);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    font-family: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    min-width: 320px;
    padding: var(--space-lg);
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-xl);
    animation: slide-up 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-up {
    from {
        transform: translateY(150%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger Animation Classes */
.stagger-item {
    animation: fade-in-up 0.6s var(--transition-bounce) backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(26, 26, 29, 0.85);
    backdrop-filter: blur(8px);
}

/* Utility Classes */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quick Action Cards */
.quick-action {
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-slow);
}

.quick-action:hover {
    transform: translateX(8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.quick-action:hover::before {
    left: 0;
    opacity: 0.05;
}

/* Quick Action Buttons - Dashboard */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.quick-action-btn:hover {
    background: var(--color-bg-elevated);
    border-color: currentColor;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Progress Bars */
.progress-bar {
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* =============================================================================
   SCHEDULE PAGE STYLES
   ============================================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-scheduled { background: #DBEAFE; color: #1E40AF; }
.status-in_progress { background: #FEF3C7; color: #92400E; }
.status-completed { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.status-draft { background: #F3F4F6; color: #4B5563; }

.scheduled-class-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}

.scheduled-class-card:hover {
    transform: translateY(-4px);
    border-color: #10B981;
    box-shadow: var(--shadow-lg), 0 8px 24px rgba(16, 185, 129, 0.2);
}

.scheduled-class-header {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    padding: 1rem 1.25rem;
}

.scheduled-class-time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    line-height: 1;
}

.scheduled-class-date {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* =============================================================================
   PROGRAMS PAGE STYLES
   ============================================================================= */

.program-info-banner {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border: 2px solid #C7D2FE;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.program-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}

.program-card:hover {
    transform: translateY(-4px);
    border-color: #6366F1;
    box-shadow: var(--shadow-lg), 0 8px 24px rgba(99, 102, 241, 0.2);
}

.program-card-header {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
    padding: 1.5rem;
}

.program-card-header h3 {
    color: white !important;
}

.program-card-header p {
    color: #C7D2FE !important;
}

.program-class-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.program-class-item:hover {
    border-color: #6366F1;
    background: #EEF2FF;
}

.program-class-sequence {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    flex-shrink: 0;
}

/* =============================================================================
   COLLECTIONS PAGE STYLES
   ============================================================================= */

.collection-info-banner {
    background: linear-gradient(135deg, #ECFEFF 0%, #CFFAFE 100%);
    border: 2px solid #A5F3FC;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.collection-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: #06B6D4;
    box-shadow: var(--shadow-lg), 0 8px 24px rgba(6, 182, 212, 0.2);
}

.collection-card-header {
    background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%) !important;
    padding: 1.25rem;
}

.collection-card-header h3 {
    color: white !important;
}

.collection-card-header p {
    color: #A5F3FC !important;
}

.collection-class-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.collection-class-item:hover {
    background: #ECFEFF;
}

/* =============================================================================
   CONTENT PIPELINE VISUALIZATION
   ============================================================================= */

.pipeline-container {
    background: linear-gradient(135deg, #FAFAF9 0%, #F5F5F4 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    overflow: hidden;
}

.pipeline-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pipeline-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.pipeline-subtitle {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.pipeline-track {
    position: relative;
    padding: 0 1rem;
}

.pipeline-line {
    position: absolute;
    top: 24px;
    left: 4rem;
    right: 4rem;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #F43F5E, #8B5CF6, #10B981);
    border-radius: 2px;
    opacity: 0.25;
}

.pipeline-stages {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
}

.pipeline-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-node:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pipeline-node-orange { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%); }
.pipeline-node-rose { background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%); }
.pipeline-node-purple { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); }
.pipeline-node-emerald { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }

.pipeline-stage-info {
    text-align: center;
}

.pipeline-stage-name {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.125rem;
}

.pipeline-stage-desc {
    font-size: 0.65rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.75rem;
    flex-shrink: 0;
}

.pipeline-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.pipeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pipeline-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #6B7280;
}

/* =============================================================================
   DASHBOARD NAV CARDS
   ============================================================================= */

.nav-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-card:hover {
    border-color: currentColor;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.nav-card-purple .nav-card-icon { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.nav-card-emerald .nav-card-icon { background: linear-gradient(135deg, #10B981, #059669); }
.nav-card-indigo .nav-card-icon { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.nav-card-cyan .nav-card-icon { background: linear-gradient(135deg, #06B6D4, #0891B2); }

.nav-card-purple { color: #8B5CF6; }
.nav-card-emerald { color: #10B981; }
.nav-card-indigo { color: #6366F1; }
.nav-card-cyan { color: #06B6D4; }

.nav-card-content {
    flex: 1;
    min-width: 0;
}

.nav-card-count {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.nav-card-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

.nav-card-arrow {
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-card:hover .nav-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================================================
   BUILDING BLOCK CARDS
   ============================================================================= */

.building-block-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    text-decoration: none;
}

.building-block-card:hover {
    border-color: #D1D5DB;
    background: #FAFAFA;
}

.building-block-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.building-block-info {
    flex: 1;
    min-width: 0;
}

.building-block-count {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.building-block-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

/* =============================================================================
   SECONDARY STAT CARDS
   ============================================================================= */

.stat-card-secondary {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

.stat-card-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-value-sm {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-sm {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

/* =============================================================================
   UPCOMING CLASS CARDS
   ============================================================================= */

.upcoming-class-card {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all var(--transition-fast);
}

.upcoming-class-card:hover {
    border-color: #10B981;
    background: #ECFDF5;
}

.upcoming-class-time {
    flex-shrink: 0;
    text-align: center;
    min-width: 60px;
}

/* =============================================================================
   ADDITIONAL TAG STYLES
   ============================================================================= */

.tag-indigo {
    background: #EEF2FF;
    color: #4F46E5;
    border-color: #C7D2FE;
}

.tag-purple {
    background: #F3E8FF;
    color: #7C3AED;
    border-color: #DDD6FE;
}

.tag-cyan {
    background: #ECFEFF;
    color: #0891B2;
    border-color: #A5F3FC;
}

.tag-teal {
    background: #F0FDFA;
    color: #0D9488;
    border-color: #99F6E4;
}

.tag-slate {
    background: #F1F5F9;
    color: #475569;
    border-color: #CBD5E1;
}

/* =============================================================================
   NAVIGATION SCHEDULE LINK
   ============================================================================= */

.nav-link-schedule {
    position: relative;
}

.nav-link-schedule::before {
    content: '';
    position: absolute;
    top: 0.625rem;
    right: 0.375rem;
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* =============================================================================
   FEEDBACK WIDGET STYLES
   ============================================================================= */

/* Feedback Tab - Collapsed State */
.feedback-tab {
    position: fixed;
    right: 0;
    bottom: 100px;
    z-index: 9998;
    cursor: pointer;
    transition: all var(--transition-base);
}

.feedback-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-secondary);
    color: white;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feedback-tab-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.feedback-tab-button:hover {
    transform: translateX(-8px);
    box-shadow: -8px 4px 30px rgba(0, 0, 0, 0.4);
    background: #2a2a2d;
}

.feedback-tab-button svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
}

/* Feedback Panel - Expanded State */
.feedback-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--color-bg-elevated);
    box-shadow: -8px 0 32px rgba(26, 26, 29, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-panel.open {
    transform: translateX(0);
}

.feedback-panel-header {
    background: var(--gradient-dark);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.feedback-panel-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.feedback-panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feedback-panel-header h2 svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.feedback-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.feedback-panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.feedback-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Feedback Type Selector */
.feedback-type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feedback-type-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.feedback-type-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.feedback-type-btn:hover {
    border-color: var(--color-text-tertiary);
    background: var(--color-bg-elevated);
}

.feedback-type-btn.active {
    color: white;
    border-color: transparent;
}

.feedback-type-btn.active.type-bug {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.feedback-type-btn.active.type-feature {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.feedback-type-btn.active.type-general {
    background: var(--gradient-accent);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

/* Feedback Form Fields */
.feedback-form-group {
    margin-bottom: 1.25rem;
}

.feedback-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.feedback-form-group input,
.feedback-form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}

.feedback-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Screenshot Capture Area */
.feedback-screenshot-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--color-bg);
}

.feedback-screenshot-area:hover {
    border-color: var(--color-primary);
    background: rgba(255, 107, 53, 0.05);
}

.feedback-screenshot-area.has-screenshot {
    border-style: solid;
    border-color: var(--color-success);
    background: rgba(0, 230, 118, 0.05);
}

.feedback-screenshot-area svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-text-tertiary);
    margin-bottom: 0.75rem;
}

.feedback-screenshot-area.has-screenshot svg {
    color: var(--color-success);
}

.feedback-screenshot-area p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.feedback-screenshot-area .hint {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-top: 0.25rem;
}

.feedback-screenshot-preview {
    position: relative;
    margin-top: 1rem;
}

.feedback-screenshot-preview img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
}

.feedback-screenshot-preview button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 29, 0.8);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.feedback-screenshot-preview button:hover {
    background: var(--color-danger);
}

/* Submit Button */
.feedback-submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* Success State */
.feedback-success {
    text-align: center;
    padding: 3rem 1.5rem;
}

.feedback-success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-success-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.feedback-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.feedback-success p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin: 0 0 1.5rem;
}

.feedback-success a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.feedback-success a:hover {
    color: var(--color-primary-dark);
}

.feedback-success a svg {
    width: 1rem;
    height: 1rem;
}

/* Panel Backdrop */
.feedback-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 29, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.feedback-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .feedback-panel {
        width: 100%;
    }

    .feedback-tab {
        bottom: 1rem;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2.5rem;
    }

    .display-text {
        font-size: 3rem;
    }

    .pipeline-container {
        padding: 1rem;
    }

    .pipeline-line {
        display: none;
    }

    .pipeline-stages {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .pipeline-stage {
        flex: 0 0 auto;
        max-width: none;
    }

    .pipeline-connector {
        display: none;
    }

    .pipeline-node {
        width: 40px;
        height: 40px;
    }

    .pipeline-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

