/* ======================
   GLOBAL STYLES
   ====================== */
body { 
    font-family: Roboto, Inter, Montserrat, sans-serif; 
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ======================
   BRANDING
   ====================== */
span.logo { 
    font-family: Times, serif; 
    color: #666666; 
    text-shadow: 2px 2px #cccccc, 0 0 25px navy, 0 0 5px blue; 
    border: 1px solid #e9ecef; 
    padding: 8px 12px; 
    margin-right: 12px;
    border-radius: 4px;
}

/* ======================
   TIER SYSTEM COLORS
   ====================== */
.bg-tier-1, .bg-tier-1a, .bg-tier-1b, .bg-tier-t1, .bg-tier-t1a, .bg-tier-t1b { 
    background: #a8c686; 
    color: #2d3e2d;
}
.bg-tier-2, .bg-tier-t2 { 
    background: #ee964b; 
    color: #fff;
}
.bg-tier-3, .bg-tier-t3 { 
    background: #669bbc; 
    color: #fff;
}
.bg-tier-4, .bg-tier-t4 { 
    background: #6c757d; 
    color: #fff;
}
.bg-tier-r1 { 
    background: #ef798a; 
    color: #fff;
}
.bg-tier-r2 { 
    background: #f7a9a8; 
    color: #2d3e2d;
}
.bg-tier-rare { 
    background: #adb9e3; 
    color: #2d3e2d;
}
.bg-tier-uncommon { 
    background: #acdde7; 
    color: #2d3e2d;
}
.bg-tier-common { 
    background: #9ad5ca; 
    color: #2d3e2d;
}

/* Color variants for text */
.col-tier-1, .col-tier-1a, .col-tier-1b, .col-tier-t1, .col-tier-t1a, .col-tier-t1b { 
    color: #a8c686; 
}
.col-tier-2, .col-tier-t2 { 
    color: #ee964b; 
}
.col-tier-3, .col-tier-t3 { 
    color: #669bbc; 
}
.col-tier-4, .col-tier-t4 { 
    color: #6c757d; 
}
.col-tier-r1 { 
    color: #ef798a; 
}
.col-tier-r2 { 
    color: #f7a9a8; 
}

/* ======================
   UTILITY CLASSES
   ====================== */
.invisible { 
    display: none; 
}

.label-as-badge { 
    border-radius: 1em; 
}

/* ======================
   LAYOUT CONTAINERS
   ====================== */
.data-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #333;
}

/* ======================
   CARDS & CONTENT BLOCKS
   ====================== */
.data-card, .policy-card, .license-card, .support-card, .use-case, .limitation-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-card:hover, .license-card:hover, .support-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.policy-card {
    background: #f8f9fa;
    border-left: 4px solid #0D6EFD;
    border-radius: 0 8px 8px 0;
}

/* ======================
   TABLES
   ====================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th {
    background: #f8f9fa;
    color: #0D6EFD;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.tier-table th {
    padding: 0rem;
    border: 2px solid #e9ecef;
    position: sticky;
    top: 0;
}

.tier-table td {
    padding: 0rem;
    border: 1px solid #e9ecef;
    vertical-align: top;
}

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

/* ======================
   BADGES & LABELS
   ====================== */
.data-badge, .format-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 1em;
    color: #fff;
    background-color: #0D6EFD;
}

.format-badge {
    background-color: #0D6EFD;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ======================
   LINKS & BUTTONS
   ====================== */
.data-link {
    color: #0D6EFD;
    text-decoration: none;
    transition: color 0.2s ease;
}

.data-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.btn-download {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

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

.btn-outline {
    border: 1px solid #0D6EFD;
    color: #0D6EFD;
    background: transparent;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #0D6EFD;
    color: white;
}

/* ======================
   HEADERS & SECTIONS
   ====================== */
.policy-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #0D6EFD;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ======================
   SPECIAL CONTENT BLOCKS
   ====================== */
.license-info {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #bee5eb;
}

.citation-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0D6EFD;
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
    margin: 1rem 0;
}

.citation {
    background: #f1f3f4;
    padding: 1rem;
    border-left: 4px solid #6c757d;
    font-style: italic;
    margin: 0.5rem 0;
    border-radius: 0 4px 4px 0;
}

/* ======================
   GRIDS
   ====================== */
.license-grid, .support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* ======================
   ALERTS & NOTIFICATIONS
   ====================== */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-info { 
    background-color: #d1ecf1; 
    border-color: #bee5eb; 
    color: #0c5460; 
}

.alert-warning { 
    background-color: #fff3cd; 
    border-color: #ffecb5; 
    color: #856404; 
}

.alert-danger { 
    background-color: #f8d7da; 
    border-color: #f5c6cb; 
    color: #721c24; 
}

.alert-success { 
    background-color: #d4edda; 
    border-color: #c3e6cb; 
    color: #155724; 
}

/* ======================
   MISC COMPONENTS
   ====================== */
.contact-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.file-size, .date-info {
    font-size: 0.85rem;
    color: #6c757d;
}

.version-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    color: #6c757d;
}

.fas {
    margin-right: 0.5rem;
}

#managerTable {
    max-height: 500px;
    overflow: auto;
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */
@media (max-width: 768px) {
    .data-container {
        padding: 1rem;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th, 
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .license-grid, .support-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .data-card, .policy-card, .license-card, .support-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

