html {
    font-size: 80%; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}



@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #0a192f;
    background-image:
        radial-gradient(circle at top, #1e2a4a, #0a192f 40%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size:
        100% 100%,
        2rem 2rem;
    color: #e6f1ff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.hidden {
    display: none;
}

.header-gradient {
    background: linear-gradient(90deg, #63b3ed, #b794f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



body > nav {
    position: sticky !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.5rem 2rem !important;
    background-color: rgba(17, 24, 39, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

body > nav:first-of-type {
    top: 0 !important;
    z-index: 50 !important;
}

nav + nav {
    top: 64px !important;
    z-index: 49 !important;
    padding: 1rem 2rem !important;
}

body > nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}

@media (min-width: 768px) {
    body > nav ul {
        display: flex !important;
        gap: 2rem !important;
    }
}

body > nav ul a {
    color: #e5e7eb !important;
    text-decoration: none !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 0.5rem 0 !important;
}

body > nav ul a:hover {
    color: #3b82f6 !important;
    transform: translateY(-1px) !important;
}

body > nav ul a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #3b82f6 !important;
    transition: width 0.3s ease !important;
}

body > nav ul a:hover::after {
    width: 100% !important;
}

.nav-logo {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: white !important;
}

.nav-logo span {
    color: #3b82f6 !important;
}

.language-switcher {
    display: flex !important;
    gap: 0.5rem !important;
}

.language-switcher button {
    background: none !important;
    border: none !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
}

.language-switcher button:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}


.card {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.filter-section {
    background-color: rgba(31, 41, 55, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
    border: 1px solid #374151;
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-accordion {
    flex: 1;
    min-width: 250px;
    position: relative;
    z-index: 10;
}

.filter-accordion.active {
    z-index: 20;
}

.filter-accordion-header {
    background-color: #374151;
    color: #e5e7eb;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.filter-accordion-header:hover {
    background-color: #4b5563;
}

.filter-accordion-content {
    position: absolute;
    width: 100%;
    padding: 10px;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    color: #d1d5db;
}

.filter-accordion.active .filter-accordion-content {
    display: block;
}

.filter-accordion-icon {
    transition: transform 0.2s ease;
}

.filter-accordion.active .filter-accordion-icon {
    transform: rotate(180deg);
}

.selection-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.selection-item:hover {
    background-color: #374151;
}

.selection-item.selected {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
}

.selection-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #374151;
    padding-top: 10px;
}

.selection-action-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    background-color: #4b5563;
    color: #e5e7eb;
    cursor: pointer;
    border: none;
}

.selection-action-btn:hover {
    background-color: #6b7280;
}

.activity-tag,
.db-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    margin: 2px;
    font-size: 12px;
    font-weight: 500;
}

.activity-tag {
    background-color: #1e3a8a;
    color: #dbeafe;
}

.db-tag {
    background-color: #042f2e;
    color: #a7f3d0;
}


.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    border: 1px solid #374151;
    vertical-align: middle;
}

.data-table th {
    background-color: #1f2937;
    color: #d1d5db;
    font-weight: bold;
    text-align: left;
    position: sticky;
    top: 0;
    user-select: none;
}

.data-table tfoot td {
    background-color: transparent;
    border: none;
    padding: 24px 15px 16px 15px;
}

.data-table tbody tr {
    background-color: rgba(31, 41, 55, 0.5);
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(31, 41, 55, 0.2);
}

.data-table tbody tr:hover {
    background-color: #374151;
}

.pagination-btn {
    background-color: #374151;
    color: #d1d5db;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #4b5563;
}

.pagination-btn.active {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
}

.pagination-btn:disabled {
    background-color: #1f2937;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
}

.pagination-nav-btn {
    padding: 8px 16px;
}

.pagination-ellipsis {
    color: #9ca3af;
    padding: 8px 4px;
    display: flex;
    align-items: center;
}


.loader {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

.download-btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease-in-out;
}

.download-main {
    background-color: #2563eb;
    color: white;
}

.download-main:hover {
    background-color: #1d4ed8;
}

.download-section {
    position: relative;
    display: inline-block;
}

.download-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1f2937;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    border: 1px solid #374151;
    border-radius: 6px;
    min-width: 220px;
    z-index: 20;
    flex-direction: column;
    padding: 8px;
}

.download-options .download-btn {
    margin-bottom: 4px;
    width: 100%;
    justify-content: flex-start;
}

.download-options .download-btn:last-child {
    margin-bottom: 0;
}

.download-option {
    background-color: #4b5563;
    color: #e5e7eb;
}

.download-option:hover {
    background-color: #6b7280;
}

.show-options {
    display: flex;
}

.tooltip {
    position: relative;
    align-items: center;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #111827;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #4b5563;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
