/* Inherit viewer styles for table container */
.full-width-table {
    width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 0;
}

/* Back to login button */
.back-to-login {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.back-to-login:hover {
    background-color: #2c3e50;
}

/* Table styles matching viewer.css */
.table-container {
    margin-bottom: 40px;
    /* background: white; */
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    padding: 15px;
}

table {
    width: 100%;
    min-width: 600px;
}

table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #34495e;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Styles from index.css for ontology info section */
.ontology-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.ontology-info h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.info-cards {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.index-card {
    background-color: #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    flex: 1;
    max-width: calc(33.33% - 14px);
}

.index-card h3 {
    color: #2980b9;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.index-card p {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Welcome message styling */
.welcome-message {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    padding: 30px;
    background: linear-gradient(to right, #f8f9fa, #ffffff, #f8f9fa);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-message h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-message p {
    color: #34495e;
    font-size: 1.2em;
    line-height: 1.6;
}

/* Add PT logo styling */
.pt-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Make info cards responsive */
@media screen and (max-width: 768px) {
    .info-cards {
        flex-direction: column;
    }
    
    .index-card {
        max-width: 100%;
    }
    
    .welcome-message {
        padding: 20px;
        margin: 20px;
    }
    
    .feature-card {
        margin: 30px 10px;
    }
    
    .help-tooltip::after {
        width: 150px;
        font-size: 11px;
    }
    
    .pt-logo {
        max-width: 150px;
    }
}

/* Ontology Example styles */
.ontology-example {
    margin-top: 30px;
    background-color: #e8f6f3;
    border-left: 4px solid #1abc9c;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.ontology-example h3 {
    color: #16a085;
    margin-bottom: 10px;
}

.ontology-example ul {
    list-style-type: none;
    padding-left: 0;
}

.ontology-example li {
    margin-bottom: 5px;
}

.ontology-example ul ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.ontology-example strong {
    color: #2c3e50;
}

/* Dashboard table styles for graph visualization */
.dashboard-table {
    margin-top: 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
}

.dashboard-table h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.relationship-checkboxes {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.relationship-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #2c3e50;
}

.relationship-checkboxes input[type="checkbox"] {
    cursor: pointer;
}

.graph-container {
    height: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
}

#graph-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: flex;
    gap: 5px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 4px;
}

#graph-controls button {
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    cursor: pointer;
}

#graph-controls button:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

#graph-controls select {
    padding: 4px;
    margin: 0 5px;
}

#graph-controls input[type="range"] {
    width: 100px;
}

.graph-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: white;
}

/* Section dividers and headers */
.section-divider {
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
    position: relative;
}

.section-header {
    background: #fff;
    padding: 0 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #2c3e50;
    font-size: 1.2em;
}

/* Feature cards for each section */
.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.feature-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Section-specific styling */
.ontology-info {
    position: relative;
    padding: 40px;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.viewer-layout {
    position: relative;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
}

.dashboard-table {
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

/* Help tooltips */
.help-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    font-size: 14px;
    transition: background-color 0.2s;
    z-index: 10;
}

.help-tooltip:hover {
    background: #2980b9;
}

.help-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 11;
}

.help-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Ensure the ontology-info and viewer-layout don't overlap the tooltip */
.ontology-info.viewer-layout {
    z-index: 1;
    margin-top: 10px;
    padding-top: 30px;
}

/* Interactive elements enhancement */
.quick-access {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.quick-access h2 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.quick-access-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.quick-access-button {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9em;
    color: #2980b9;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.quick-access-button:hover {
    background-color: #2980b9;
    color: white;
    border-color: #2475a8;
}

.quick-access-button .entity-type {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-left: 5px;
    padding-left: 5px;
    border-left: 1px solid #bdc3c7;
}

.quick-access-button:hover .entity-type {
    color: #ecf0f1;
    border-left-color: #ecf0f1;
}


.entity-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.entity-title-row h2 {
    margin: 0;
    font-size: 1.4em;
    line-height: 1;
}