/* Version: v37.9 - JSON-Visualisierung-Umstellung abgeschlossen */

/* Merkmalsimplikationen Section */
.implications-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #4a90e2;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.implications-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

/* JSON Section */
.json-section {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.json-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.json-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.json-copy-btn, .json-clear-btn, .json-save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.json-copy-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.json-copy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.json-copy-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.json-clear-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.json-clear-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.json-textarea {
    width: 100%;
    min-height: 1800px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    background: #000000;
    color: #ffffff;
}

.json-textarea:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.json-context-name {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
}

.json-context-name::before {
    content: "(";
}

.json-context-name::after {
    content: ")";
}

.implications-log {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.implications-log h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
    font-weight: bold;
}

.implications-log-content {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 10px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    color: #212529;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: fit-content;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #000000;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    justify-content: center;
    min-width: fit-content;
    width: auto;
}

.tab-btn:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #ffffff;
    border-color: #343a40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Different background colors for each tab button */
.tab-btn[data-target="importSection"] {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #c8e6c9;
}

.tab-btn[data-target="importSection"]:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #ffffff;
}

.tab-btn[data-target="importSection"].active {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #ffffff;
    border-color: #1b5e20;
}

.tab-btn[data-target="contextSection"] {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #bbdefb;
}

.tab-btn[data-target="contextSection"]:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #ffffff;
}

.tab-btn[data-target="contextSection"].active {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #ffffff;
    border-color: #0d47a1;
}

.tab-btn[data-target="conceptsSection"] {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border-color: #ffcc80;
}

.tab-btn[data-target="conceptsSection"]:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    color: #ffffff;
}

.tab-btn[data-target="conceptsSection"].active {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    color: #ffffff;
    border-color: #ef6c00;
}

.tab-btn[data-target="visualizationSection"] {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #e1bee7;
}

.tab-btn[data-target="visualizationSection"]:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
    color: #ffffff;
}

.tab-btn[data-target="visualizationSection"].active {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
    color: #ffffff;
    border-color: #6a1b9a;
}

.tab-btn[data-target="implicationsSection"] {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-color: #b2dfdb;
}

.tab-btn[data-target="implicationsSection"]:hover {
    background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
    color: #ffffff;
}

.tab-btn[data-target="implicationsSection"].active {
    background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
    color: #ffffff;
    border-color: #004d40;
}

.tab-btn[data-target="jsonSection"] {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffecb3;
}

.tab-btn[data-target="jsonSection"]:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
}

.tab-btn[data-target="jsonSection"].active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
    border-color: #f57c00;
}

/* Handbuch button (link) */
.tab-btn[href="user-manual.html"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #e9ecef;
    color: #000000;
}

.tab-btn[href="user-manual.html"]:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #ffffff;
}

.tab-btn[href="user-manual.html"].active {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #ffffff;
    border-color: #343a40;
}

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

/* Context file name styling */
.context-file-name {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: normal;
    margin-left: 10px;
}

.context-file-name::before {
    content: "(";
}

.context-file-name::after {
    content: ")";
}

/* Context Editor Controls */
.context-editor-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.context-edit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.context-edit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

/* Specific button colors */
#newObjectButton {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

#newObjectButton:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
}

#newAllObjectButton {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

#newAllObjectButton:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a32a3 0%, #4a2b8a 100%);
}

#newAttributeButton {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

#newAttributeButton:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

#saveContextButton {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}

#saveContextButton:hover:not(:disabled) {
    background: linear-gradient(135deg, #e55a00 0%, #cc4a00 100%);
}

#newContextButton {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

#newContextButton:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a32a3 0%, #4a2b8a 100%);
}

.context-edit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.context-edit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Editable table cells */
.context-table td.editable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.context-table td.editable:hover {
    background-color: #e3f2fd !important;
}

.context-table td.editing {
    padding: 0;
    background-color: #fff3cd !important;
}

.context-table td.editing input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 8px;
    font-size: 14px;
    background: transparent;
    outline: none;
    box-sizing: border-box;
}

.context-table td.editing input:focus {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
    position: relative;
}

/* Vanta.js Background Animation Support */
#vanta-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container with background for better readability */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 7px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.header-left-container {
    flex-shrink: 0;
}

.header-right-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-container {
    flex-shrink: 0;
}

.header-logo {
    width: 80px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.header-text {
    flex: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: left;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: bold;
}

/* Main Content */
main {
    display: grid;
    gap: 30px;
}

/* Sections */
section {
    background: rgba(255, 255, 255, 0.4);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #3498db;
}

section h2 {
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Title with Button Styling */
.title-with-button {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.title-with-button h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    flex-shrink: 0;
    text-align: left;
}

/* File Input Styling */
.file-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.file-icon {
    font-size: 1.2rem;
}

.file-info {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background-color: #e8f5e8;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
}

.error-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #ffeaea;
    color: #c0392b;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
}

/* Test Buttons Styling */
.test-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.test-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
}

.test-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #dee2e6;
    padding: 20px;
    background-color: rgba(248,249,250,0.85);
    width: 100%;
    max-width: 1160px; /* Todo 53: Begrenzung auf 1160px für horizontalen Scrollbar */
}

/* Todo 53: Scrollbar auch über der Tabelle */
.table-container::-webkit-scrollbar {
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.context-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: white;
    font-size: 14px;
    margin: 0;
}

.context-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.context-table th:first-child {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    text-align: left;
}

.context-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    background-color: white; /* Todo 53: Weißer Hintergrund für alle Datenzellen */
}

.context-table td:first-child {
    background-color: #f8f9fa; /* Nur erste Spalte (Objektnamen) behält grauen Hintergrund */
    font-weight: 600;
    text-align: left;
}

.context-table tbody tr:hover {
    background-color: #f8f9fa;
}

.context-table tbody tr:hover td:first-child {
    background-color: #e9ecef;
}

/* Todo 53: Hover-Effekt für Datenzellen (außer erste Spalte) */
.context-table tbody tr:hover td:not(:first-child) {
    background-color: #f0f0f0; /* Leicht grauer Hintergrund beim Hover */
}

/* Checkmark styling */
.checkmark {
    color: #27ae60;
    font-weight: bold;
    font-size: 16px;
}

/* Table Info */
.table-info {
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 5px;
    border-left: 4px solid #2196f3;
    margin-top: 15px;
    font-weight: 500;
}

/* Concepts Stats */
.concepts-stats {
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 5px;
    border-left: 4px solid #2196f3;
    margin-top: 15px;
    font-weight: 500;
}

/* Algorithmus Log Styling */
.algorithm-log {
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(248, 249, 250, 0.85);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.algorithm-log h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #495057;
    font-weight: 600;
}

.algorithm-log-content {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.2;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.algorithm-log-content .step {
    margin-bottom: 2px;
    padding: 1px 0;
}

.algorithm-log-content .step-info {
    color: #007bff;
    font-weight: 500;
}

.algorithm-log-content .step-success {
    color: #28a745;
}

.algorithm-log-content .step-warning {
    color: #ffc107;
}

.algorithm-log-content .step-error {
    color: #dc3545;
}

/* Import Section */
.import-section {
    margin: 10px 0;
    border: 2px solid #3498db;
    background: rgba(120, 125, 135, 0.25); /* Gleiches Grau wie andere Container */
}

.feedback-message {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    text-align: center;
    font-style: italic;
    color: #2c3e50;
}

/* Table Section */
.table-section {
    margin: 10px 0;
    border: 2px solid #3498db;
    background: rgba(120, 125, 135, 0.25); /* Helleres und durchsichtigeres Grau für bessere Lesbarkeit und Animation-Sichtbarkeit */
}

/* Concepts Section */
.concepts-section {
    margin: 10px 0;
    border: 2px solid #3498db;
    background: rgba(120, 125, 135, 0.25); /* Helleres und durchsichtigeres Grau für bessere Lesbarkeit und Animation-Sichtbarkeit */
}

.concepts-container {
    background-color: rgba(248,249,250,0.85);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #dee2e6;
}

.concepts-textarea {
    width: 100%;
    min-height: 600px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    background-color: white;
}

.concepts-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.compute-btn, .copy-btn, .clear-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.compute-btn {
    background-color: #007bff;
    color: white;
}

.compute-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.compute-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.copy-btn {
    background-color: #28a745;
    color: white;
}

.copy-btn:hover:not(:disabled) {
    background-color: #1e7e34;
}

.copy-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.clear-btn {
    background-color: #dc3545;
    color: white;
}

.clear-btn:hover {
    background-color: #c82333;
}

/* Diagram Section */
.diagram-section {
    margin: 10px 0;
    border: 2px solid #3498db;
    background: rgba(120, 125, 135, 0.25); /* Helleres und durchsichtigeres Grau für bessere Lesbarkeit und Animation-Sichtbarkeit */
}

.diagram-container {
    background-color: rgba(248,249,250,0.85);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #dee2e6;
}

/* Tool Selection */
.tool-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.tool-label {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    margin-right: 10px;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #3498db;
    background-color: white;
    color: #3498db;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.tool-btn.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.diagram-image-container {
    margin-bottom: 15px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.diagram-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: contain;
}

.diagram-status {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #e3f2fd;
    border-radius: 5px;
    border-left: 4px solid #2196f3;
    font-size: 14px;
    font-weight: 500;
    color: #1976d2;
}

.diagram-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.generate-diagram-btn, .download-pdf-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.generate-diagram-btn {
    background-color: #17a2b8;
    color: white;
}

.generate-diagram-btn:hover:not(:disabled) {
    background-color: #138496;
}

.generate-diagram-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.download-pdf-btn {
    background-color: #6f42c1;
    color: white;
}

.download-pdf-btn:hover:not(:disabled) {
    background-color: #5a32a3;
}

.download-pdf-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Button Styling */
.compute-btn, .copy-btn, .clear-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.compute-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.compute-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.compute-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.copy-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.copy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.copy-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clear-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 16px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-logo {
        width: 60px;
        height: auto;
    }

    header h1 {
        font-size: 2rem;
        text-align: center;
    }

    header p {
        text-align: center;
    }
    
    section {
        padding: 15px;
    }
    
    .concepts-controls {
        flex-direction: column;
    }
    
    .compute-btn, .copy-btn, .clear-btn {
        width: 100%;
        justify-content: center;
    }
    
    .context-table {
        font-size: 12px;
    }
    
    .context-table th,
    .context-table td {
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .context-table {
        font-size: 11px;
    }
    
    .context-table th,
    .context-table td {
        padding: 4px 2px;
    }
} 

/* Formal Concept Highlighting */
.concept-highlight {
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.concept-highlight:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Table cell highlighting */
.context-table td.concept-highlight,
.context-table th.concept-highlight {
    border: 2px solid rgba(0, 0, 0, 0.3);
    position: relative;
}

.context-table td.concept-highlight::after,
.context-table th.concept-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.8;
    z-index: -1;
    border-radius: 2px;
} 

/* Concept number column styling */
.concept-header-cell {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
    border: 1px solid #dee2e6;
    padding: 8px;
    min-width: 80px;
}

.concept-number-cell {
    text-align: center;
    font-weight: bold;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px;
    min-width: 80px;
}

.object-name-cell {
    background-color: #f8f9fa;
    font-weight: bold;
    padding: 8px;
    border: 1px solid #dee2e6;
    text-align: left;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Corner cell styling */
.corner-cell {
    background-color: white !important;
    color: #495057 !important;
    font-weight: bold;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    position: relative;
}

.add-object-icon,
.add-attribute-icon,
.group-icon {
    cursor: pointer;
    font-size: 16px;
    margin: 0 6px;
    transition: all 0.2s ease;
}

.add-object-icon:hover,
.add-attribute-icon:hover,
.group-icon:hover {
    color: #007bff;
    transform: scale(1.2);
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    border-radius: 50%;
    transition: background-color 0.2s;
    vertical-align: middle;
}

.scroll-to-top-btn:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

/* Footer Links */
.footer-links {
    margin-top: 10px;
}

.footer-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer-separator {
    margin: 0 10px;
    color: #6c757d;
}

/* Tooltip Icon */
.tooltip-icon {
    cursor: help;
    margin-right: 8px;
    font-size: 1.1em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tooltip-icon:hover {
    opacity: 1;
}



/* Adjust existing column indices due to new concept column */
.context-table th:nth-child(1) {
    /* Concept header - first column */
}

.context-table th:nth-child(2) {
    /* Corner cell - second column */
}

.context-table th:nth-child(n+3) {
    /* Attribute headers - third column onwards */
}

.context-table td:nth-child(1) {
    /* Concept numbers - first column */
}

.context-table td:nth-child(2) {
    /* Object names - second column */
}

.context-table td:nth-child(n+3) {
    /* Data cells - third column onwards */
} 

/* Test File Selector Styling */
.test-file-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Container Styles for other HTML pages */
.manual-container,
.impressum-container,
.datenschutz-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.test-select-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.test-select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.test-select:hover {
    border-color: #17a2b8;
}

.test-select:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* Export Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

/* Container Visibility Control */
.container-hidden {
    display: none !important;
}

.container-visible {
    display: block !important;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: #495057;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.modal-cancel-btn, .modal-accept-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.modal-cancel-btn {
    background-color: #dc3545;
    color: white;
}

.modal-cancel-btn:hover {
    background-color: #c82333;
}

.modal-accept-btn {
    background-color: #28a745;
    color: white;
}

.modal-accept-btn:hover {
    background-color: #218838;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* Export info styles */
.export-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.export-info p {
    margin: 5px 0;
    font-size: 13px;
    color: #0056b3;
    line-height: 1.4;
}

.export-info strong {
    color: #004085;
}

/* Algorithm selection styles */
.algorithm-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(248, 249, 250, 0.85);
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.algorithm-label {
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.algorithm-btn {
    padding: 8px 16px;
    border: 2px solid #007bff;
    background-color: white;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.algorithm-btn:hover {
    background-color: #e7f3ff;
    border-color: #0056b3;
    color: #0056b3;
}

.algorithm-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.algorithm-btn.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Size Selection Styling */
.size-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.size-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.size-select {
    padding: 6px 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.size-select:hover {
    border-color: #17a2b8;
}

.size-select:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* Visualisierung Modal Styles */
.visualization-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: 850px;
    height: 850px;
}

.visualization-modal-content .modal-body {
    padding: 20px;
    text-align: center;
    overflow: auto;
}

.visualization-modal-content .diagram-image-container {
    margin: 0;
    width: 800px;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.visualization-modal-content .diagram-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: contain;
}

.visualization-modal-content .diagram-image svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Visualization Window Styles */
.visualization-window {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 20px;
}

.visualization-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.visualization-top-container {
    background: rgba(120, 125, 135, 0.25);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.visualization-header {
    background: white;
    color: #2c3e50;
    padding: 20px;
    margin-bottom: 0;
    border-bottom: 2px solid #3498db;
}

.visualization-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-align: left;
}

.visualization-controls {
    background-color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
    border-radius: 0 0 8px 8px;
}

.visualization-body {
    background-color: white;
    border: 2px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-top: 0;
}

.footer-divider {
    margin: 20px 0 0 0;
    border: none;
    height: 2px;
    background-color: #dee2e6;
}

.visualization-main {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.visualization-main .diagram-container {
    /* Dynamische Größe - wird über JavaScript gesetzt */
    text-align: center;
    background-color: rgba(248,249,250,0.85);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #dee2e6;
}

.diagram-container {
    /* Dynamische Größe - wird über JavaScript gesetzt */
    text-align: center;
    background-color: rgba(248,249,250,0.85);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.visualization-main .diagram-image-container {
    /* Dynamische Größe - wird über JavaScript gesetzt */
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visualization-main .diagram-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: contain;
}

.visualization-main .diagram-image svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.visualization-footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    border-radius: 0 0 8px 8px;
}

.regenerate-btn {
    padding: 8px 16px;
    border: 2px solid #28a745;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.regenerate-btn:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Visualization Success Message */
.visualization-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideIn 0.5s ease-out;
}

.visualization-success .success-content {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.visualization-success .success-icon {
    font-size: 24px;
}

.visualization-success .success-text {
    font-size: 16px;
    font-weight: 500;
}

.open-visualization-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.open-visualization-btn:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

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

/* Todo 54: Loading spinner animation for algorithm modal */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Todo 54: Algorithm Modal Styles */
#algorithmModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal wird jetzt mit direkten CSS-Styles gesteuert */
#algorithmModal.show {
    display: block;
}

#algorithmModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#algorithmModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

#algorithmModal .modal-header h3 {
    margin: 0;
    color: #333;
}

#algorithmModal .modal-body {
    margin-bottom: 20px;
}

#algorithmModal .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

#algorithmModal .progress-step {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

#algorithmModal .modal-footer {
    text-align: right;
}

#algorithmModal .cancel-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#algorithmModal .cancel-btn:hover {
    background-color: #c82333;
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-message h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 24px;
}

.loading-message p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Column letters row styling (A, B, C, ...) - v21.0 */
.column-letter-cell {
    background-color: white !important;
    color: #007bff !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    font-size: 12px;
}

.empty-cell {
    background-color: white !important;
    height: 20px !important; /* Half the normal height */
    padding: 2px 8px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Row number column styling - v21.0 */
.row-number-header {
    background-color: #f8f9fa !important;
    font-weight: bold !important;
    text-align: center !important;
}

.row-number-cell {
    background-color: #f8f9fa !important;
    text-align: center !important;
    font-weight: bold !important;
}

/* Orientierungsauswahl - aus neueren Versionen integriert */
.orientation-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.orientation-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.orientation-select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.orientation-select:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.orientation-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Container-Größe-Auswahl - Todo 50 */
.diagram-size-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.size-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.size-select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.size-select:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.size-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* === EDITIER- UND DARSTELLUNGSFUNKTIONEN CSS (v35ontext-Menü Styles */
.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 150px;
}

.menu-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item:last-child {
    border-bottom: none;
}

/* Button Icons */
.add-icon, .group-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    padding: 2px;
    border-radius: 3px;
}

.add-icon:hover, .group-icon:hover {
    background-color: #e9ecef;
}

/* Variable Spaltenbreiten */
.attribute-header {
    min-width: 120px !important;
    max-width: 200px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Gruppierung - Orange Rahmen */
.row-grouped {
    border: 2px solid orange !important;
}

.row-grouped:first-child {
    border-top: 2px solid orange !important;
}

.row-grouped:last-child {
    border-bottom: 2px solid orange !important;
}

/* Spaltennummern-Zeile */
.column-letter-cell {
    background-color: #f8fa !important;
    color: #07ff !important;
    font-weight: bold !important;
    text-align: center !important;
    height: 20px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Zeilennummern */
.row-number-cell {
    background-color: #f8fa !important;
    color: #07ff !important;
    font-weight: bold !important;
    text-align: center !important;
    border-right: 1px solid #dee2e6 !important;
}

/* Editierbare Zellen */
.data-cell:focus, .object-name-cell:focus, .attribute-header:focus {
    outline: 2px solid #07ff !important;
    background-color: #fff !important;
}

/* Tooltips */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 1001;
    white-space: nowrap;
}

/* Drag&Drop Styles */
tr[draggable="true"]:hover {
    background-color: #f8a;
}

tr[draggable="true"]:active {
    opacity: 0.5;
}

th[draggable="true"]:hover {
    background-color: #e9f;
}

th[draggable="true"]:active {
    opacity: 0.5;
}

/* Statuszeile */
.status-line {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 50px;
    font-size: 12px;
    color: #6c757d;
}

/* Scrollbar Styles */
.table-container {
    overflow-x: auto;
    max-width: 1200px;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Kontext-Tabelle erweiterte Styles */
#contextTableElement {
    width: 100% !important;
    min-width: 1200px !important;
    max-width: none !important;
    border-collapse: collapse;
}

#contextTableElement th,
#contextTableElement td {
    border: 1px solid #dee2e6;
    padding: 6px 8px;
    vertical-align: middle;
}

/* Fett gedruckte Objektnamen */
.object-name-cell {
    font-weight: bold !important;
    background-color: #f8a;
}

/* Checkmark für X-Werte */
.checkmark {
    color: #28a745;
    font-weight: bold;
}

/* Corner Cell mit Buttons */
.corner-cell {
    background-color: #e9ecef;
    font-weight: bold;
    text-align: center;
    position: relative;
}

/* Row Number Header */
.row-number-header {
    background-color: #e9ecef;
    font-weight: bold;
    text-align: center;
}

/* Empty cells in header */
.empty-cell {
    background-color: #f8f9fa;
    border: none;
}

/* Concept number cell */
.concept-number-cell {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .table-container {
        max-width: 100%;
    }
    
    #contextTableElement {
        min-width: 800px;
    }
}

/* JSON Save Button Styles */
.json-save-btn {
    background: linear-gradient(135deg, #fd7e14 0%, #e8690b 100%);
    color: white;
}

.json-save-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e8690b 0%, #d45a00 100%);
}

.json-save-btn:disabled {
    background: linear-gradient(135deg, #fd7e14 0%, #e8690b 100%);
    opacity: 0.6;
    cursor: not-allowed;
}

/* JSON Save Modal Styles */
.json-save-info {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.json-save-info p {
    margin: 5px 0;
    color: #856404;
}

.json-save-info strong {
    color: #533f03;
}