/* Fonts */

@font-face {
    font-family: 'Gentium Plus';
    src: url('../fonts/GentiumPlus-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gentium Plus Compact';
    src: url('../fonts/GentiumPlusCompact-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quivira';
    src: url('../fonts/Quivira.otf') format('opentype');
    font-display: swap; /* Correct choice for essential symbols */
}
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
font-display: swap;
}
@font-face {
font-family: 'AncientSans';
src: url('../fonts/Ancientsans-rvyrK.ttf');
font-display: swap;
}
.STIX_Two_Math-or_Symbola {
    font-family: "STIX Two Math", "Symbola";
}
.AncientSans {
    font-family: AncientSans, sans-serif;
}

/* Rest of the CSS */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    padding: 20px;
}


table {
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 20px; 
}

th, td { 
    border: 1px solid #ddd; 
    padding: 10px; 
    text-align: center;
}

th { 
    background-color: #f8f9fa; 
    font-weight: normal;
}

.label-cell { 
    background-color: #f8f9fa; 
    font-weight: bold;
}

h2, h3 {
border-bottom: 1px solid #a2a9b1;
text-align: center;
}
.sideways {
    display: inline-block;
    transform: rotate(-90deg);
}

.clear-btn { 
    padding: 10px 15px; 
    background-color: #f44336; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    margin-left: 10px; 
    cursor: pointer; 
}

.centralized { 
    text-align: center; 
}

.blue_underline { 
    color: #0000EE; 
    text-decoration: underline; 
}

.notetag:hover::after { 
    content: attr(data-tooltip); 
    position: absolute; 
    background: #333; 
    color: white; 
    padding: 5px; 
    border-radius: 3px; 
    white-space: nowrap; 
    z-index: 1000; 
    bottom: 125%; 
    left: 50%; 
    transform: translateX(-50%); 
}

.overlay-target { 
    position: relative; 
    display: inline-block; 
}

.overlay { 
    position: absolute; 
    left: 0; 
    top: 0; 
}

span { 
    display: inline-block; 
}

.turned { 
    transform: rotate(180deg); 
}

.grayed-out { 
    background-color: #d1d4da; 
}

a { 
    text-decoration: none; 
    color: black; 
    cursor: pointer; 
}

a:hover { 
    text-decoration: underline; 
    color: #0000EE; 
}

.clickable-text { 
    cursor: pointer; 
}

.clickable-text:hover, .clickable-text:focus { 
    background-color: #f0f0f0; 
}
.inverted {
    transform: scaleY(-1);
}

.otherones-table { 
    width: 30%; 
    margin-bottom: 20px; 
    height: 133px; 
    box-sizing: border-box; 
}

small-capital { 
    font-variant: small-caps; 
}

.otherones-table_with-images { 
    width: 30%; 
    margin-bottom: 20px; 
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-container { 
    display: flex; 
    margin-bottom: 10px; 
    padding: 10px; 
    background-color: #f9f9f9; 
    align-items: center; 
    border: none; 
}

#searchInput { 
    flex: 1; 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px 0 0 4px; 
    font-size: 14px; 
}

.search-btn { 
    background: linear-gradient(45deg, #6366f1, #8b5cf6); 
    border: none; 
    padding: 10px 15px; 
    border-radius: 4px; 
    color: white; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); 
}

.overflow {
    overflow-x: auto;
}

.search-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4); 
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background-color: #727c89;
    color: white;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 10px;
}

.tab.active {
    background-color: #6b7ff7;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.category-tab {
    padding: 8px 15px;
    background-color: #e9ecef;
    text-align: center;
    cursor: pointer;
    margin: 0 2px 5px 0;
    flex-grow: 1;
    border-radius: 5px;
}

.tab-content { 
    display: none; 
}

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

.mirrored { 
    transform: scaleX(-1); 
    display: inline-block; 
}

/* Notification bell styles */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-container {
    position: relative;
}

.bell-button {
    background: linear-gradient(45deg, #f59e0b, #fbbf24); /* Gold/orange gradient */
    border: none;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); /* Gold shadow */
    transition: all 0.3s ease;
}

.bell-button:hover {
    background: linear-gradient(45deg, #fbbf24, #fcd34d); /* Lighter gold on hover */
    transform: scale(1.1) rotate(15deg); /* Scale and rotate effect */
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.bell-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.notifications-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.notifications-dropdown.show {
    display: block;
}

.notifications-header {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-list {
    max-height: 256px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: flex-start;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.unread {
    background-color: #eff6ff;
}

.notification-content {
    flex-grow: 1;
    margin-right: 10px;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
}

.notification-message {
    color: #666;
    font-size: 14px;
}

.notification-time {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.notification-text {
    font-size: 14px;
    flex: 1;
}

.dismiss-button {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    margin-left: 8px;
}

.dismiss-button:hover {
    color: #4b5563;
}

.no-notifications {
    padding: 16px;
    text-align: center;
    color: #6b7280;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    padding: 16px;
}

.loading-spinner::after {
    content: "ʘ"; /* yes, I am using the bilabial click as a part of the spinner */
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.empty-notifications {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* This targets any text containing the character */
*:contains("𝼋") {
    font-family: 'Gentium Plus' !important;
}

/* ========== MOBILE OPTIMIZATIONS (ONLY) ========== */
@media (max-width: 768px) {
    /* Basic layout adjustments */
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        margin: 0 5px;
    }
    
    /* Header stack vertically on mobile */
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    /* Search controls stack on mobile */
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    #searchInput {
        border-radius: 4px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .search-btn, .clear-btn {
        width: 100%;
    }
    
    /* Tabs wrap on mobile */
    .tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab {
        flex: 1;
        margin-right: 0;
        min-width: 120px;
    }
    
    /* Make notification bell easier to tap */
    .bell-button:hover {
        transform: scale(1.05); /* Less dramatic on mobile */
    }
    
    /* Responsive notification dropdown */
    .notifications-dropdown {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: 50%;
        transform: translateX(50%);
    }
    
    /* Improve table scrolling experience */
    .overflow {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Make "other ones" tables full width on mobile */
    .otherones-table, 
    .otherones-table_with-images {
        width: 100%;
        height: auto;
    }
}
