/* Modern Rohkun Design System */

:root {
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Success Colors */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;

    /* Warning Colors */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    /* Error Colors */
    --error-50: #fef2f2;
    --error-100: #fee2e2;
    --error-500: #ef4444;
    --error-600: #dc2626;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    overflow-y: auto;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-y: auto;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    margin-bottom: 0;
}

.navbar-container {
    width: 100%;
    padding: 0 var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    max-width: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--primary-600);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-600);
    background-color: var(--primary-50);
}

.nav-link.active {
    color: var(--primary-600);
    background-color: var(--primary-100);
    border: 2px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

.btn-secondary {
    background-color: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-success {
    background-color: var(--success-600);
    color: white;
    border-color: var(--success-600);
}

.btn-success:hover:not(:disabled) {
    background-color: var(--success-700);
}

.btn-danger {
    background-color: var(--error-600);
    color: white;
    border-color: var(--error-600);
}

.btn-danger:hover:not(:disabled) {
    background-color: var(--error-700);
}

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input:invalid {
    border-color: var(--error-500);
}

.form-select {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: var(--space-10);
}

.form-textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    resize: vertical;
    min-height: 5rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th {
    background-color: var(--gray-50);
    padding: var(--space-3) var(--space-6);
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
}

.badge-primary {
    background-color: var(--primary-100);
    color: var(--primary-800);
}

.badge-success {
    background-color: var(--success-100);
    color: var(--success-800);
}

.badge-warning {
    background-color: var(--warning-100);
    color: var(--warning-800);
}

.badge-error {
    background-color: var(--error-100);
    color: var(--error-800);
}

.badge-gray {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    z-index: 100;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-md);
}

.modal-close:hover {
    color: var(--gray-600);
    background-color: var(--gray-100);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* Tabs */
.tabs {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-8);
}

.tabs-nav {
    display: flex;
    gap: var(--space-8);
    margin-bottom: -1px;
}

.tab-button {
    background: none;
    border: none;
    padding: var(--space-4) var(--space-1);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tab-button:hover {
    color: var(--gray-700);
    border-bottom-color: var(--gray-300);
}

.tab-button.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-500);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

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

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Controls */
.filter-controls {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--gray-200);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: end;
}

.filter-row:not(:last-child) {
    margin-bottom: var(--space-3);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 140px;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: white;
    color: var(--gray-700);
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select:hover {
    border-color: var(--primary-400);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.filter-input {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: white;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.filter-input::placeholder {
    color: var(--gray-400);
}

.filter-actions {
    display: flex;
    align-items: end;
}

.btn-clear {
    padding: var(--space-2) var(--space-4);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* Container spacing fixes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Responsive container */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 0 var(--space-8);
    }
}

/* Main content spacing */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
}

@media (min-width: 1200px) {
    .main-content {
        padding: var(--space-8) var(--space-6);
    }
}

@media (min-width: 1600px) {
    .main-content {
        max-width: 1600px;
        padding: var(--space-8) var(--space-8);
    }
}

/* Body spacing */
body {
    margin: 0;
    padding: 0;
}

.flex-wrap {
    flex-wrap: wrap;
}

.min-w-0 {
    min-width: 0;
}

/* Project Tabs */
.project-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-1);
    gap: var(--space-1);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.tab-btn.active {
    background: white;
    color: var(--primary-700);
    box-shadow: var(--shadow-sm);
}

.tab-icon {
    font-size: 1rem;
}

.tab-text {
    font-weight: 600;
}

/* Project Cards */
.project-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
    gap: var(--space-3);
}

.project-title-section {
    flex: 1;
}

.project-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0 0 var(--space-1) 0;
}

.project-subtitle {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.project-date, .project-size {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.project-stack {
    margin-bottom: var(--space-4);
}

.stack-section {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.stack-section:last-child {
    margin-bottom: 0;
}

.stack-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stack-tags {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.stack-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.stack-tag.frontend {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-200);
}

.stack-tag.backend {
    background: var(--success-50);
    color: var(--success-700);
    border-color: var(--success-200);
}

.stack-tag.connector {
    background: var(--warning-50);
    color: var(--warning-700);
    border-color: var(--warning-200);
}

.stack-more {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    padding: var(--space-1) var(--space-2);
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.project-metrics {
    display: flex;
    gap: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-100);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.75rem;
}

.metric-item.positive .metric-value {
    color: var(--success-600);
    font-weight: 600;
}

.metric-icon {
    font-size: 0.875rem;
}

.metric-value {
    font-weight: 600;
    color: var(--gray-900);
}

.metric-label {
    color: var(--gray-500);
    font-weight: 500;
}

/* Report Detail Layout */
.report-layout {
    display: flex;
    gap: var(--space-8);
    min-height: calc(100vh - 200px);
}

.report-content {
    flex: 7;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-right: var(--space-2);
}

.report-sidebar {
    flex: 3;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-right: var(--space-2);
}

/* Custom scrollbars */
.report-content::-webkit-scrollbar,
.report-sidebar::-webkit-scrollbar {
    width: 6px;
}

.report-content::-webkit-scrollbar-track,
.report-sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.report-content::-webkit-scrollbar-thumb,
.report-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.report-content::-webkit-scrollbar-thumb:hover,
.report-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.content-section {
    margin-bottom: var(--space-8);
}

.content-section:last-child {
    margin-bottom: var(--space-20); /* Extra space for fixed buttons */
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

/* Stack Boxes */
.stack-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.stack-box:last-child {
    margin-bottom: 0;
}

.stack-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--gray-200);
}

.stack-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.stack-item {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--primary-200);
}

/* Confidence Distribution Section */
.confidence-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.confidence-box {
    margin-bottom: var(--space-4);
}

.confidence-box:last-of-type {
    margin-bottom: var(--space-3);
}

.confidence-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.confidence-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.confidence-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
}

.confidence-level-name {
    min-width: 60px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.confidence-bar-container {
    flex: 1;
    height: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: var(--radius-sm);
}

.confidence-bar.certain {
    background: #10b981;
}

.confidence-bar.high {
    background: #22c55e;
}

.confidence-bar.medium {
    background: #f59e0b;
}

.confidence-bar.low {
    background: #ef4444;
}

.confidence-bar.unknown {
    background: #6b7280;
}

.confidence-stats {
    min-width: 70px;
    text-align: right;
    color: var(--gray-600);
    font-size: 0.7rem;
}

.confidence-summary {
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-200);
    font-size: 0.8rem;
}

.confidence-summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-1) 0;
    color: var(--gray-700);
}

.confidence-summary-label {
    font-weight: 500;
}

.confidence-summary-value {
    font-weight: 600;
}

.confidence-summary-value.good {
    color: #10b981;
}

.confidence-summary-value.fair {
    color: #f59e0b;
}

.confidence-summary-value.poor {
    color: #ef4444;
}

/* Fixed Action Buttons */
.fixed-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 50;
    padding: var(--space-4);
}

.actions-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-btn.primary {
    background: #2563eb !important;
    color: white !important;
    border: 1px solid #2563eb !important;
}

.action-btn.primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.action-btn.success {
    background: #059669 !important;
    color: white !important;
    border: 1px solid #059669 !important;
}

.action-btn.success:hover {
    background: #047857 !important;
    border-color: #047857 !important;
}

.action-btn.secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.action-btn.secondary:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
}

.action-btn.danger {
    background: #dc2626 !important;
    color: white !important;
    border: 1px solid #dc2626 !important;
}

.action-btn.danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.action-btn i {
    font-size: 1rem;
}

/* Filter Box */
.filter-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-top: var(--space-4);
    margin-bottom: var(--space-20); /* Extra space for fixed buttons */
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--gray-200);
}

.filter-section {
    margin-bottom: var(--space-4);
}

.filter-section:last-of-type {
    margin-bottom: var(--space-5);
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
    padding: var(--space-1);
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.filter-checkbox:hover {
    background-color: var(--gray-50);
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-actions {
    display: flex;
    gap: var(--space-2);
}

.filter-btn {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.primary {
    background: var(--primary-600);
    color: white;
}

.filter-btn.primary:hover {
    background: var(--primary-700);
}

.filter-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.filter-btn.secondary:hover {
    background: var(--gray-200);
}

/* Endpoints Table */
.endpoints-table-container {
    overflow-x: auto;
}

.endpoints-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

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

.endpoints-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.endpoint-row:hover {
    background: var(--gray-50);
}

.endpoint-row.connected {
    background: var(--success-50);
}

.endpoint-row.orphaned {
    background: var(--warning-50);
}

.method-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.method-badge.get {
    background: var(--success-100);
    color: var(--success-800);
}

.method-badge.post {
    background: var(--primary-100);
    color: var(--primary-800);
}

.method-badge.put {
    background: var(--warning-100);
    color: var(--warning-800);
}

.method-badge.delete {
    background: var(--error-100);
    color: var(--error-800);
}

.method-badge.patch {
    background: var(--gray-100);
    color: var(--gray-800);
}

.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.connected {
    background: var(--success-100);
    color: var(--success-800);
}

.status-badge.orphaned {
    background: var(--warning-100);
    color: var(--warning-800);
}

.path-cell {
    font-family: var(--font-mono);
    color: var(--gray-800);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.handler-cell {
    font-family: var(--font-mono);
    color: var(--primary-700);
    font-weight: 500;
}

.file-cell {
    color: var(--gray-600);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.line-cell {
    color: var(--gray-500);
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Column widths */
.method-col {
    width: 80px;
}

.path-col {
    width: 35%;
}

.status-col {
    width: 100px;
}

.handler-col {
    width: 20%;
}

.file-col {
    width: 20%;
}

.line-col {
    width: 60px;
}

/* Connections Table */
.connections-table-container {
    overflow-x: auto;
}

.connections-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

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

.connections-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.connection-row:hover {
    background: var(--gray-50);
}

.connection-row.connected {
    background: var(--success-50);
}

.connection-row.partial {
    background: var(--warning-50);
}

.connection-row.uncertain {
    background: var(--error-50);
}

.frontend-call-cell {
    font-family: var(--font-mono);
    color: var(--primary-700);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backend-endpoint-cell {
    font-family: var(--font-mono);
    color: var(--success-700);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge.partial {
    background: var(--warning-100);
    color: var(--warning-800);
}

.confidence-cell {
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.confidence-high {
    background: var(--success-100) !important;
    color: var(--success-800) !important;
}

.confidence-medium {
    background: var(--warning-100) !important;
    color: var(--warning-800) !important;
}

.confidence-low {
    background: var(--error-100) !important;
    color: var(--error-800) !important;
}

/* Connections table column widths */
.frontend-col {
    width: 25%;
}

.backend-col {
    width: 25%;
}

.frontend-file-col,
.backend-file-col {
    width: 15%;
}

.confidence-col {
    width: 80px;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--gray-500);
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--space-2);
}

.loading-text {
    color: var(--gray-500);
    font-size: 0.875rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.connections-content, .errors-content {
    padding: var(--space-4);
}

.empty-state {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: var(--space-8);
}

/* API Management Layout */
.api-layout {
    display: flex;
    gap: var(--space-8);
    min-height: calc(100vh - 140px);
}

.api-content {
    flex: 7;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-right: var(--space-2);
}

.api-sidebar {
    flex: 3;
    position: sticky;
    top: var(--space-6);
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Custom scrollbars for API management */
.api-content::-webkit-scrollbar {
    width: 6px;
}

.api-content::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.api-content::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.api-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.api-sidebar::-webkit-scrollbar {
    width: 4px;
}

.api-sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.api-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.api-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* User Page Layout */
.user-layout {
    display: flex;
    gap: var(--space-8);
    min-height: calc(100vh - 140px);
}

.user-content {
    flex: 7;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-right: var(--space-2);
}

.user-sidebar {
    flex: 3;
    position: sticky;
    top: var(--space-6);
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Custom scrollbars for user page */
.user-content::-webkit-scrollbar {
    width: 6px;
}

.user-content::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.user-content::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.user-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.user-sidebar::-webkit-scrollbar {
    width: 4px;
}

.user-sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.user-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.user-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: var(--space-8);
    min-height: calc(100vh - 140px);
}

.dashboard-content {
    flex: 7;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-right: var(--space-2);
}

.dashboard-sidebar {
    flex: 3;
    position: sticky;
    top: var(--space-6);
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Fix text overflow in dashboard sidebar cards */
.dashboard-sidebar .card {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dashboard-sidebar .card-body {
    padding: var(--space-5);
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-sidebar .card-body.text-center {
    padding: var(--space-5);
}

.dashboard-sidebar .card-body .text-3xl,
.dashboard-sidebar .card-body .text-2xl {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
}

.dashboard-sidebar .card-body .text-sm,
.dashboard-sidebar .card-body .text-xs {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 var(--space-1);
}

/* Custom scrollbars for dashboard */
.dashboard-content::-webkit-scrollbar {
    width: 6px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 var(--space-4);
    }
    
    .navbar-nav {
        gap: var(--space-3);
    }
    
    .nav-link {
        padding: var(--space-1) var(--space-2);
        font-size: 0.875rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .modal {
        margin: var(--space-4);
        max-width: calc(100vw - 2rem);
    }
    
    .tabs-nav {
        gap: var(--space-4);
        overflow-x: auto;
        padding-bottom: var(--space-2);
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    /* Mobile filter adjustments */
    .filter-row {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .search-group {
        min-width: auto;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .project-stats {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .meta-item {
        font-size: 0.7rem;
    }

    /* Report layout mobile adjustments */
    .report-layout {
        flex-direction: column;
        gap: var(--space-4);
    }

    .report-sidebar {
        position: static;
        order: -1; /* Show stack boxes first on mobile */
    }

    .stack-box {
        margin-bottom: var(--space-3);
    }

    .actions-container {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: var(--space-2) var(--space-3);
    }

    .action-btn span {
        display: none;
    }

    .action-btn i {
        font-size: 1.25rem;
    }

    /* API management mobile adjustments */
    .api-layout {
        flex-direction: column;
        gap: var(--space-4);
    }

    .api-sidebar {
        position: static;
        order: -1; /* Show stats first on mobile */
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
    }

    .api-sidebar .card {
        min-width: 200px;
        flex-shrink: 0;
    }

    /* User page mobile adjustments */
    .user-layout {
        flex-direction: column;
        gap: var(--space-4);
    }

    .user-sidebar {
        position: static;
        order: -1; /* Show credits first on mobile */
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
    }

    .user-sidebar .card {
        min-width: 200px;
        flex-shrink: 0;
    }

    /* Dashboard mobile adjustments */
    .dashboard-layout {
        flex-direction: column;
        gap: var(--space-4);
    }

    .dashboard-sidebar {
        position: static;
        order: -1; /* Show stats first on mobile */
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
    }

    .dashboard-sidebar .card {
        min-width: 200px;
        flex-shrink: 0;
    }
}
/* Custom N
otifications */
.notification-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.notification {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid var(--primary-500);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-left-color: var(--success-500);
}

.notification.error {
    border-left-color: var(--error-500);
}

.notification.warning {
    border-left-color: var(--warning-500);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.notification-title {
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
}

.notification-close:hover {
    color: var(--gray-600);
    background-color: var(--gray-100);
}

.notification-message {
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Custom Confirm Dialog */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.confirm-dialog {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    padding: var(--space-6);
}

.confirm-dialog-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.confirm-dialog-message {
    color: var(--gray-700);
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}/*
 Notification System Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
    border-left: 4px solid var(--primary-500);
}

.notification.success {
    border-left-color: var(--success-500);
}

.notification.error {
    border-left-color: var(--error-500);
}

.notification.warning {
    border-left-color: var(--warning-500);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.notification-message {
    padding: 0 16px 12px;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Confirm Dialog Styles */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.2s ease-out;
}

.confirm-dialog-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 12px;
    font-weight: 600;
    font-size: 18px;
    color: var(--gray-900);
}

.confirm-dialog-message {
    padding: 0 20px 20px;
    color: var(--gray-700);
    line-height: 1.5;
    white-space: pre-line;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
    justify-content: flex-end;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}/* G
roup Details Modal Enhancements */
.group-api-key-item {
    transition: all 0.2s ease;
}

.group-api-key-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background-color: var(--success-100);
    color: var(--success-600);
}

.badge-error {
    background-color: var(--error-100);
    color: var(--error-600);
}

.badge-primary {
    background-color: var(--primary-100);
    color: var(--primary-600);
}

.badge-gray {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

/* Button Outline Style */
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}