:root {
    /* Villanova.ai inspired colors */
    --primary: #0052CC;
    --primary-dark: #003D99;
    --primary-light: #E6F0FF;
    --accent: #00B8D4;
    --success: #00C853;
    --warning: #FFB300;
    --danger: #D32F2F;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-tertiary: #E8EBF0;
    --bg-dark: #0A1929;
    --text-primary: #0A1929;
    --text-secondary: #546E7A;
    --text-light: #90A4AE;
    --border: #CFD8DC;
    --border-light: #ECEFF1;
    --shadow-sm: 0 2px 4px 0 rgba(10, 25, 41, 0.08);
    --shadow: 0 4px 8px 0 rgba(10, 25, 41, 0.12);
    --shadow-lg: 0 8px 24px 0 rgba(10, 25, 41, 0.16);
    --shadow-xl: 0 12px 32px 0 rgba(10, 25, 41, 0.20);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'Helvetica Neue', sans-serif;
    background: var(--bg-secondary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 82, 204, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 184, 212, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.65;
    letter-spacing: -0.01em;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.02em;
}

.brand-logo {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 82, 204, 0.3));
    transform: scale(1.05);
}

.brand-divider {
    color: var(--border);
    font-weight: 300;
    font-size: 28px;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-stats {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}

.stat-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-weight: 700;
    color: var(--primary);
    margin-left: 4px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 184, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 24px 80px 24px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #051424 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 24px;
    text-align: center;
    margin-top: 60px;
    border-top: 3px solid var(--primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* Tabs */
.tabs {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 32px;
    display: flex;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.tab {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-icon {
    font-size: 20px;
    transition: all 0.3s ease;
}

.tab-label {
    font-size: 14px;
}

.tab:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.tab:hover .tab-icon {
    transform: scale(1.2);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

.tab.active .tab-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Process Tabs (for dataset detail view) */
.process-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
}

.process-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px 8px 0 0;
}

.process-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.process-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
}

.process-tab-contents {
    position: relative;
}

.process-tab-content {
    display: none;
}

.process-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn {
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-success:hover {
    background: #00A843;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-danger:hover {
    background: #B71C1C;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Filters */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-input, .filter-select {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-1px);
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

thead {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--border);
}

th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-primary);
}

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

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: var(--primary-light);
    cursor: pointer;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF3E0;
    color: #E65100;
}

.badge-danger {
    background: #FFEBEE;
    color: #C62828;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card.success {
    border-left-color: var(--success);
}

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Charts */
.chart-container {
    height: 300px;
    margin: 20px 0;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 12px;
    padding: 16px;
}

.bar-chart.horizontal {
    width: 100%;
}

.bar {
    display: flex;
    align-items: center;
    background: #e0e0e0; /* light gray */
    border-radius: 4px 0 0 4px;
    min-height: 32px;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 4px;
    height: 32px;
    max-width: 100%;
}

.bar:hover {
    background: #cccccc;
}

.bar-label {
    position: relative;
    left: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 120px;
    flex-shrink: 0;
    text-align: left;
}

.bar-value {
    position: relative;
    margin-left: auto;
    right: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    flex-direction: column;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 16px;
    color: #991B1B;
    margin: 16px 0;
}

.error-title {
    font-weight: 600;
    margin-bottom: 4px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 41, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 28px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 24px;
}

.close-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
    border-color: var(--danger);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    gap: 20px;
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.detail-row:hover {
    background: var(--bg-secondary);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Fullscreen Modal */
.modal-fullscreen {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    animation: fadeIn 0.2s ease;
}

.modal-fullscreen.active {
    display: block;
}

.modal-fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-fullscreen-header {
    background: var(--bg-primary);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.modal-fullscreen-header .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-fullscreen-header .close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-fullscreen-header .close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-value {
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-word;
    border-bottom: 1px solid var(--border-light);
}

.detail-value.code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    background: #f8f9fa;
    color: #2d3748;
    white-space: pre-wrap;
}

/* New Detail View Styles */
.detail-header-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.detail-header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-label-sm {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.detail-value-sm {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-column {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
}

.detail-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    gap: 16px;
}

.field-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 140px;
    flex-shrink: 0;
}

.field-value {
    font-size: 13px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
    flex: 1;
}

.map-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.map-table thead {
    background: var(--bg-secondary);
}

.map-table th {
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.map-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.map-table tbody tr:hover {
    background: var(--bg-secondary);
}

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

    /* Link Preview Tooltip */
    .wiki-link {
        position: relative;
        display: inline-block;
        color: #3b82f6;
        text-decoration: none;
        margin-right: 8px;
        cursor: pointer;
    }

    .wiki-link:hover {
        text-decoration: underline;
    }

    .link-preview-tooltip {
        position: fixed;
        background: white;
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
        padding: 16px;
        max-width: 400px;
        z-index: 10000;
        display: none;
        pointer-events: none;
    }

    .link-preview-tooltip.show {
        display: block;
    }

    .link-preview-tooltip.loading {
        padding: 24px;
        text-align: center;
    }

    .link-preview-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .link-preview-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .link-preview-description {
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .link-preview-url {
        font-size: 11px;
        color: var(--text-light);
        font-family: monospace;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Responsive */
@media (max-width: 768px) {
    .nav-stats {
        display: none;
    }

    .tabs {
        flex-direction: column;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .detail-row {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-fullscreen-body {
        padding: 16px;
    }
    
    .detail-columns {
        grid-template-columns: 1fr;
    }
    
    .detail-header-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 10% auto; 
    padding: 0;
    border: 1px solid var(--border);
    width: 50%; 
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--bg-secondary);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.process-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.process-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.process-item:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-light);
}

.process-item input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 12px;
}

.process-info {
    flex: 1;
}

.process-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.process-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Job Creation Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

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

.form-control:read-only {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.processes-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    min-height: 60px;
}

.process-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 0.9rem;
}

.process-tag-name {
    font-weight: 600;
    color: var(--primary-dark);
}

.process-tag-id {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

