@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --success: #059669;
    --success-light: #10b981;
    --warning: #d97706;
    --warning-light: #f59e0b;
    --danger: #dc2626;
    --danger-light: #ef4444;
    --info: #0891b2;
    --info-light: #06b6d4;
    --purple: #7c3aed;
    --purple-light: #8b5cf6;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: var(--font-sans);
    background-color: var(--slate-100);
    color: var(--slate-800);
    line-height: 1.6;
}

.navbar {
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-700);
    margin: 0;
    letter-spacing: -0.01em;
}

.card-header h5 i {
    color: var(--slate-400);
    margin-right: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--slate-100);
    padding: 0.75rem 1.25rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-200);
}

.dashboard-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    margin: 0;
}

.dashboard-header h2 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.dashboard-timestamp {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 500;
}

.kpi-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.kpi-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.kpi-card.kpi-primary::before { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%); }
.kpi-card.kpi-success::before { background: linear-gradient(90deg, var(--success) 0%, var(--success-light) 100%); }
.kpi-card.kpi-warning::before { background: linear-gradient(90deg, var(--warning) 0%, var(--warning-light) 100%); }
.kpi-card.kpi-danger::before { background: linear-gradient(90deg, var(--danger) 0%, var(--danger-light) 100%); }
.kpi-card.kpi-info::before { background: linear-gradient(90deg, var(--info) 0%, var(--info-light) 100%); }
.kpi-card.kpi-purple::before { background: linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%); }

.kpi-card .card-body {
    padding: 1.25rem 1.25rem 1rem;
}

.kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-card.kpi-primary .kpi-icon { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.kpi-card.kpi-success .kpi-icon { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.kpi-card.kpi-warning .kpi-icon { background: rgba(217, 119, 6, 0.1); color: var(--warning); }
.kpi-card.kpi-danger .kpi-icon { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.kpi-card.kpi-info .kpi-icon { background: rgba(8, 145, 178, 0.1); color: var(--info); }
.kpi-card.kpi-purple .kpi-icon { background: rgba(124, 58, 237, 0.1); color: var(--purple); }

.kpi-card .kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.kpi-card .kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.kpi-card .kpi-subtext {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

.kpi-card .card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--slate-100);
}

.kpi-card .card-footer a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.15s ease;
}

.kpi-card .card-footer a:hover {
    color: var(--primary);
}

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.chart-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.chart-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-mini {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    text-align: center;
    transition: all 0.15s ease;
}

.stats-mini:hover {
    background: white;
    border-color: var(--primary);
}

.stats-mini .stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.2;
}

.stats-mini .stats-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table thead th {
    background: var(--slate-50);
    border-bottom: 2px solid var(--slate-200);
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: var(--slate-50);
}

.table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.table a:hover {
    text-decoration: underline;
}

.table .text-end {
    text-align: right !important;
}

.badge {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.badge.bg-success { background: rgba(5, 150, 105, 0.1) !important; color: var(--success) !important; }
.badge.bg-primary { background: rgba(37, 99, 235, 0.1) !important; color: var(--primary) !important; }
.badge.bg-warning { background: rgba(217, 119, 6, 0.1) !important; color: var(--warning) !important; }
.badge.bg-danger { background: rgba(220, 38, 38, 0.1) !important; color: var(--danger) !important; }
.badge.bg-info { background: rgba(8, 145, 178, 0.1) !important; color: var(--info) !important; }
.badge.bg-secondary { background: rgba(100, 116, 139, 0.1) !important; color: var(--slate-600) !important; }

.btn {
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-outline-purple {
    color: var(--purple);
    border: 1px solid var(--purple);
    background: transparent;
}

.btn-outline-purple:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.quick-link-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.quick-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    height: 100%;
}

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

.quick-link-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--slate-400);
    transition: color 0.15s ease;
}

.quick-link-btn:hover i {
    color: var(--primary);
}

.widget-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
}

.widget-card .card-body {
    padding: 1.5rem;
}

.widget-card .widget-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.widget-card .widget-label {
    color: var(--slate-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.widget-card.widget-primary .widget-value { color: var(--primary); }
.widget-card.widget-success .widget-value { color: var(--success); }
.widget-card.widget-warning .widget-value { color: var(--warning); }
.widget-card.widget-danger .widget-value { color: var(--danger); }

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--slate-500);
}

.empty-state i {
    font-size: 2rem;
    color: var(--slate-300);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border-color: var(--slate-300);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--slate-700);
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

h2, h3, h4, h5, h6 {
    color: var(--slate-800);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.text-muted {
    color: var(--slate-500) !important;
}

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.alert {
    border-radius: var(--radius);
    border: none;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.alert-info {
    background: rgba(8, 145, 178, 0.1);
    color: var(--info);
}

.table-responsive {
    border-radius: var(--radius);
}

.dropdown-menu {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: calc(var(--radius) - 2px);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: var(--slate-100);
}

.nav-tabs .nav-link {
    color: var(--slate-600);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--slate-200);
    padding: 1rem 1.25rem;
}

.pagination .page-link {
    border-radius: var(--radius);
    margin: 0 2px;
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    font-size: 0.875rem;
}

.pagination .page-link:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* System-Guided Mode Styles */
.guided-mode-toggle {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: fit-content;
}

/* Wrapper ensures toggle doesn't affect grid layouts */
.guided-mode-toggle-wrapper {
    display: block;
    margin-bottom: 8px;
}

.gm-toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gm-toggle-switch input[type="checkbox"] {
    width: 48px;
    height: 24px;
    appearance: none;
    background: var(--slate-300);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gm-toggle-switch input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.gm-toggle-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gm-toggle-switch input[type="checkbox"]:checked::before {
    left: 26px;
}

.gm-toggle-switch label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    margin: 0;
}

.gm-toggle-switch label i {
    color: #f59e0b;
    font-size: 1.2rem;
}

/* Progress Bar */
.gm-progress-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid #8b5cf6;
}

.gm-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gm-progress-title {
    font-weight: 600;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-progress-title i {
    color: #f59e0b;
}

.gm-progress-count {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.gm-progress-track {
    height: 8px;
    background: var(--slate-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.gm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.gm-step-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.gm-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--slate-200);
    color: var(--slate-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gm-step-dot.completed {
    background: #10b981;
    color: white;
}

.gm-step-dot.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.gm-more-steps {
    font-size: 0.75rem;
    color: var(--slate-400);
}

/* Guidance Panel */
.gm-guidance-panel {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 320px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

.gm-panel-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.gm-panel-body {
    padding: 16px;
}

.gm-field-name {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--slate-800);
}

.gm-field-guidance-text {
    color: var(--slate-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.gm-compliance-note,
.gm-impact-note {
    background: #f0f9ff;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #0369a1;
    margin-bottom: 10px;
    display: none;
}

.gm-compliance-note i,
.gm-impact-note i {
    margin-right: 8px;
}

.gm-impact-note {
    background: #fef3c7;
    color: #92400e;
}

.gm-suggestions {
    display: none;
    margin-top: 12px;
}

.gm-suggestion-title {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-bottom: 8px;
}

.gm-suggestion-btn {
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.gm-suggestion-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gm-panel-actions {
    padding: 12px 16px;
    background: var(--slate-50);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--slate-200);
}

/* Field Highlighting */
.gm-current-field {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.gm-current-field input,
.gm-current-field select,
.gm-current-field textarea {
    position: relative;
    z-index: 15;
    pointer-events: auto !important;
}

/* Ensure highlighted inputs are always interactive */
.gm-input-highlight {
    pointer-events: auto !important;
}

.gm-field-highlight {
    position: absolute;
    inset: -8px;
    border: 3px solid #8b5cf6;
    border-radius: var(--radius-lg);
    background: rgba(139, 92, 246, 0.05);
    pointer-events: none;
    z-index: 5;
    animation: pulse-highlight 2s infinite;
}

/* Direct input highlight - no overlay blocking */
.gm-input-highlight {
    border: 3px solid #8b5cf6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.2) !important;
    background-color: rgba(139, 92, 246, 0.05) !important;
    animation: input-pulse 2s infinite !important;
}

@keyframes input-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.15), 0 0 30px rgba(139, 92, 246, 0.3); }
}

@keyframes pulse-highlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

.gm-locked-field {
    opacity: 0.5;
    pointer-events: none;
}

/* Validation Feedback */
.gm-validation-feedback {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: var(--radius);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gm-validation-feedback.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.gm-validation-feedback.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Notification */
.gm-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.gm-notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.gm-notification-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.gm-notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    margin-left: 12px;
}

.gm-notification button:hover {
    opacity: 1;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Completion Modal */
.gm-completion-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.gm-completion-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.gm-completion-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.gm-completion-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gm-completion-header h4 {
    margin: 0;
}

.gm-completion-body {
    padding: 20px;
}

.gm-summary-section,
.gm-impact-summary {
    background: var(--slate-50);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: 16px;
}

.gm-summary-section h6,
.gm-impact-summary h6 {
    margin: 0 0 8px 0;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-summary-section ul,
.gm-impact-summary ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.gm-completion-actions {
    padding: 16px 20px;
    background: var(--slate-50);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--slate-200);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Adjust main content when guided mode is active */
body.guided-mode-active .main-content {
    padding-right: 360px;
}

@media (max-width: 1200px) {
    .gm-guidance-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 40vh;
    }
    
    body.guided-mode-active .main-content {
        padding-right: 0;
        padding-bottom: 200px;
    }
}
