/* CSV Content Manager - Superscript Styling */

/* Superscript styling */
.csv-superscript {
    border-collapse: collapse;
    box-sizing: border-box;
    color: rgb(36, 36, 36);
    cursor: text;
    display: inline;
    font-family: Montserrat, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 12px;
    font-weight: 700;
    height: auto;
    line-height: 0px;
    margin-bottom: 0px;
    margin-left: 4px;
    margin-right: 4px;
    margin-top: 0px;
    position: relative;
    text-align: left;
    text-indent: 0px;
    text-size-adjust: 100%;
    top: -6px;
}

/* Footnotes container */
.csv-footnotes {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.csv-footnotes-top {
    margin-top: 0;
    margin-bottom: 20px;
}

.csv-footnotes-inline {
    margin: 10px 0;
    padding: 10px;
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
}

/* Footnotes title */
.csv-footnotes-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

/* Footnotes list */
.csv-footnotes-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.csv-footnote-item {
    margin-bottom: 8px;
    line-height: 1.4;
}

.csv-footnote-text {
    font-size: 0.9em;
    color: #555;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .csv-footnotes {
        padding: 10px;
        margin-top: 15px;
    }
    
    .csv-footnotes-list {
        padding-left: 15px;
    }
    
    .csv-footnote-text {
        font-size: 0.85em;
    }
}

/* Integration with existing CSV specification styling */
.csv-specifications-wrapper .csv-footnotes {
    margin-top: 25px;
}

.csv-spec-label .csv-superscript {
    color: rgb(36, 36, 36);
    font-weight: 700;
}

/* Hover effects for better UX */
.csv-superscript:hover {
    color: rgb(36, 36, 36);
    cursor: text;
}

/* Print styling */
@media print {
    .csv-superscript {
        color: #000;
    }
    
    .csv-footnotes {
        background-color: transparent;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .csv-footnote-text {
        color: #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .csv-footnotes {
        background-color: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .csv-footnotes-title {
        color: #ffffff;
    }
    
    .csv-footnote-text {
        color: #cccccc;
    }
    
    .csv-superscript {
        color: rgb(36, 36, 36);
    }
    
    .csv-superscript:hover {
        color: rgb(36, 36, 36);
    }
}

/* Accessibility improvements */
.csv-superscript {
    text-decoration: none;
}

.csv-superscript:focus {
    outline: 2px solid rgb(36, 36, 36);
    outline-offset: 1px;
}

/* Animation for footnotes appearing */
.csv-footnotes {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Alternative superscript styles (for future features) */
.csv-superscript-letter {
    font-style: italic;
    color: #d63638;
}

.csv-superscript-symbol {
    font-family: Georgia, serif;
    color: #00a32a;
}

/* Special styling for different footnote positions */
.csv-footnotes-bottom {
    border-top: 2px solid #0073aa;
    margin-top: 30px;
    padding-top: 20px;
}

.csv-footnotes-top {
    border-bottom: 2px solid #0073aa;
    margin-bottom: 30px;
    padding-bottom: 20px;
} 