/**
 * File Types Guide - Stylesheet
 * Created by Typecta (https://typecta.com)
 * All rights reserved. Unauthorized copying, modification, distribution, 
 * or use of this code is strictly prohibited without express permission.
 * Copyright © Typecta - https://typecta.com
 */

/* 
 * ================================================================
 * This stylesheet is part of the File Types Guide created by Typecta
 * Website: https://typecta.com
 * All rights reserved. Unauthorized use or copying is prohibited.
 * ================================================================
 */

:root {
    --primary: #0071E3;
    --primary-dark: #0055BB;
    --secondary: #1D1D1F;
    --light: #F5F5F7;
    --grey: #E5E5E5;
    --grey-light: #F2F2F2;
    --dark: #1D1D1F;
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --info: #5AC8FA;
    --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --transition-standard: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-primary: 'Neue Montreal', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --container-padding: 40px;
}

/* Font Face Declarations */
@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/NeueMontreal-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/NeueMontreal-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

header {
    margin-bottom: 40px;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

h2 {
    color: var(--secondary);
    margin: 30px 0 20px;
    padding-bottom: 12px;
    font-weight: 500;
    letter-spacing: -0.3px;
    font-size: 1.75rem;
}

h3 {
    font-size: 1.375rem;
    font-weight: 500;
    margin: 30px 0 20px;
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: var(--container-padding);
    overflow: visible;
    position: relative;
    width: 100%;
    min-height: auto;
}

.typecta-attribution {
    text-align: center;
    margin-top: 10px;
    color: #86868b;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.typecta-logo {
    height: 20px;
    width: auto;
    color: var(--secondary);
}

.footer-logo {
    height: 35px;
    width: auto;
    color: var(--secondary);
}

.typecta-logo .cls-1,
.footer-logo .cls-1 {
    fill: var(--secondary);
}

.typecta-attribution a {
    display: flex;
    align-items: center;
}

.tabs {
    display: flex;
    margin-bottom: 40px;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    padding-top: 5px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    position: relative; /* Added to create a positioning context */
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--secondary);
    transition: var(--transition-standard);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transform-origin: center center; /* Added for better transform behavior */
}

/* Default active tab style (for All Formats and Usage Guide) */
.tab.active {
    color: white;
    background-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

/* Vector tab active style */
.tab[data-tab="vector"].active {
    background-color: #003B80;
    background-image: linear-gradient(135deg, #003B80, #0055BB);
    box-shadow: 0 2px 8px rgba(0, 59, 128, 0.25);
}

/* Images tab active style */
.tab[data-tab="images"].active {
    background-color: #00598A;
    background-image: linear-gradient(135deg, #00598A, #0084C2);
    box-shadow: 0 2px 8px rgba(0, 89, 138, 0.25);
}

/* Design tab active style */
.tab[data-tab="design"].active {
    background-color: #0E5C22;
    background-image: linear-gradient(135deg, #0E5C22, #1D8C3B);
    box-shadow: 0 2px 8px rgba(14, 92, 34, 0.25);
}

/* Office tab active style */
.tab[data-tab="office"].active {
    background-color: #9C4F00;
    background-image: linear-gradient(135deg, #9C4F00, #C26500);
    box-shadow: 0 2px 8px rgba(156, 79, 0, 0.25);
}

/* Video tab active style */
.tab[data-tab="video"].active {
    background-color: #8C1D1D;
    background-image: linear-gradient(135deg, #8C1D1D, #C22020);
    box-shadow: 0 2px 8px rgba(140, 29, 29, 0.25);
}

/* Utility tab active style */
.tab[data-tab="utility"].active {
    background-color: #6B3FA0;
    background-image: linear-gradient(135deg, #6B3FA0, #8A5FB9);
    box-shadow: 0 2px 8px rgba(107, 63, 160, 0.25);
}

/* Font tab active style */
.tab[data-tab="font"].active {
    background-color: #A85C00;
    background-image: linear-gradient(135deg, #A85C00, #D97A00);
    box-shadow: 0 2px 8px rgba(168, 92, 0, 0.25);
}

.tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 70%);
    pointer-events: none;
}

/* Default hover style (for All Formats and Usage Guide) */
.tab:hover:not(.active) {
    color: var(--primary);
    background-color: rgba(0, 113, 227, 0.08);
    transform: translateY(-2px); /* Only transform the tab itself */
}

/* Vector tab hover style */
.tab[data-tab="vector"]:hover:not(.active) {
    color: #003B80;
    background-color: rgba(0, 59, 128, 0.08);
}

/* Images tab hover style */
.tab[data-tab="images"]:hover:not(.active) {
    color: #00598A;
    background-color: rgba(0, 89, 138, 0.08);
}

/* Design tab hover style */
.tab[data-tab="design"]:hover:not(.active) {
    color: #0E5C22;
    background-color: rgba(14, 92, 34, 0.08);
}

/* Office tab hover style */
.tab[data-tab="office"]:hover:not(.active) {
    color: #9C4F00;
    background-color: rgba(156, 79, 0, 0.08);
}

/* Video tab hover style */
.tab[data-tab="video"]:hover:not(.active) {
    color: #8C1D1D;
    background-color: rgba(140, 29, 29, 0.08);
}

/* Utility tab hover style */
.tab[data-tab="utility"]:hover:not(.active) {
    color: #6B3FA0;
    background-color: rgba(107, 63, 160, 0.08);
}

/* Font tab hover style */
.tab[data-tab="font"]:hover:not(.active) {
    color: #A85C00;
    background-color: rgba(168, 92, 0, 0.08);
}

.search-container {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    width: 100%;
}

.search-box {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid var(--grey);
    border-radius: 14px;
    font-size: 1rem;
    transition: var(--transition-standard);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    font-family: var(--font-primary);
    background-color: var(--grey-light);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    pointer-events: none;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
}

.file-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    position: relative;
    border: 1px solid var(--grey);
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
    transform-origin: center bottom;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.file-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    padding: 20px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-header-content {
    display: flex;
    align-items: center;
    z-index: 1;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 70%);
    pointer-events: none;
}

.file-card.vector .card-header {
    background-color: #003B80;
    background-image: linear-gradient(135deg, #003B80, #0055BB);
}

.file-card.images .card-header,
.file-card.raster .card-header {
    background-color: #00598A;
    background-image: linear-gradient(135deg, #00598A, #0084C2);
}

.file-card.design .card-header {
    background-color: #0E5C22;
    background-image: linear-gradient(135deg, #0E5C22, #1D8C3B);
}

.file-card.office .card-header {
    background-color: #9C4F00;
    background-image: linear-gradient(135deg, #9C4F00, #C26500);
}

.file-card.video .card-header {
    background-color: #8C1D1D;
    background-image: linear-gradient(135deg, #8C1D1D, #C22020);
}

.file-card.utility .card-header {
    background-color: #6B3FA0;
    background-image: linear-gradient(135deg, #6B3FA0, #8A5FB9);
}

.file-card.font .card-header {
    background-color: #A85C00;
    background-image: linear-gradient(135deg, #A85C00, #D97A00);
}

.extension {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-right: 10px;
}

.card-name {
    font-size: 0.875rem;
    margin-left: 0;
    font-weight: 500;
    opacity: 0.9;
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    margin-bottom: 14px;
    font-size: 0.9375rem;
    color: #424245;
    line-height: 1.5;
}

.card-content strong {
    color: var(--secondary);
    font-weight: 600;
}

.card-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.card-content li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.app-badge {
    background-color: var(--grey-light);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition-standard);
    display: inline-block;
    text-decoration: none;
    border: 1px solid transparent;
}

.app-badge:hover {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.app-badge:active {
    transform: translateY(0) scale(0.98);
}

.software-section {
    margin-bottom: 12px;
    margin-top: auto;
}

.software-section p {
    margin-bottom: 6px;
}

/* 
 * ================================================================
 * This stylesheet is part of the File Types Guide created by Typecta
 * Website: https://typecta.com
 * All rights reserved. Unauthorized use or copying is prohibited.
 * ================================================================
 */

.usage-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0 40px;
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    overflow: hidden;
}

.usage-table th, .usage-table td {
    padding: 18px 20px;
    text-align: left;
}

.usage-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: -0.2px;
}

.usage-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--grey);
}

.usage-table tr:nth-child(even) {
    background-color: var(--grey-light);
}

.usage-table td:nth-child(2) {
    font-weight: 500;
    color: var(--primary);
}

/* Tab content wrapper to maintain consistent height */
.tab-content-wrapper {
    position: relative;
    min-height: auto;
    margin-bottom: 80px;
    overflow: visible;
}

.file-type-info {
    display: none;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.file-type-info.active {
    display: block;
}

.hidden {
    display: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-standard);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    z-index: 100;
    overflow: hidden;
}

.back-to-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(255,255,255,0.2), transparent 70%);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
    margin-top: 100px;
    text-align: center;
    padding: 30px 0 10px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
    clear: both;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    height: 35px;
    width: auto;
    color: var(--secondary);
}

.footer-contact {
    text-align: center;
    color: #86868b;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-standard);
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-copyright {
    color: #86868b;
    font-size: 0.8125rem;
}

.footer-copyright a {
    color: #86868b;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-standard);
}

.footer-copyright a:hover {
    color: var(--primary);
}

.visitor-tracker {
    font-size: 0.875rem;
    color: #86868b;
    margin-top: 8px;
    opacity: 0.8;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.visitor-tracker span {
    color: var(--primary);
    font-weight: 500;
}

.live-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4CD964;
    position: relative;
    margin-right: 2px;
}

.live-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4CD964;
    opacity: 0.4;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(2.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

body.dark-mode .visitor-tracker {
    color: #A1A1A6;
}

body.dark-mode .visitor-tracker span {
    color: #0084FC;
}

body.dark-mode .live-indicator,
body.dark-mode .live-indicator::after {
    background-color: #30D158;
}

body.dark-mode .footer-contact,
body.dark-mode .footer-copyright {
    color: #A1A1A6;
}

body.dark-mode .footer-social a {
    color: #F5F5F7;
}

body.dark-mode .footer-social a:hover {
    color: var(--primary);
}

body.dark-mode .footer-logo,
body.dark-mode .typecta-logo {
    filter: invert(1);
}

body.dark-mode .no-results-message {
    color: #A1A1A6;
}

body.dark-mode .back-to-top {
    background-color: var(--primary-dark);
}

body.dark-mode .back-to-top:hover {
    background-color: var(--primary);
}

body.dark-mode .theme-toggle {
    background-color: var(--primary-dark);
}

body.dark-mode .theme-toggle:hover {
    background-color: var(--primary);
}

body.dark-mode .theme-toggle svg {
    fill: white;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

/* Dark Mode Toggle */
.theme-toggle-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
}

.theme-toggle {
    position: relative;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-standard);
    text-decoration: none;
    border: none;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(255,255,255,0.2), transparent 70%);
    pointer-events: none;
}

.theme-toggle:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: white;
    transition: var(--transition-standard);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Dark mode hover styles for category tabs */
body.dark-mode .tab[data-tab="vector"]:hover:not(.active) {
    color: #F5F5F7;
    background-color: rgba(0, 59, 128, 0.2);
}

body.dark-mode .tab[data-tab="images"]:hover:not(.active) {
    color: #F5F5F7;
    background-color: rgba(0, 89, 138, 0.2);
}

body.dark-mode .tab[data-tab="design"]:hover:not(.active) {
    color: #F5F5F7;
    background-color: rgba(14, 92, 34, 0.2);
}

body.dark-mode .tab[data-tab="office"]:hover:not(.active) {
    color: #F5F5F7;
    background-color: rgba(156, 79, 0, 0.2);
}

body.dark-mode .tab[data-tab="video"]:hover:not(.active) {
    color: #F5F5F7;
    background-color: rgba(140, 29, 29, 0.2);
}

body.dark-mode .tab[data-tab="font"]:hover:not(.active) {
    color: #F5F5F7;
    background-color: rgba(168, 92, 0, 0.2);
}

body.dark-mode .tab[data-tab="utility"]:hover:not(.active) {
    color: #F5F5F7;
    background-color: rgba(107, 63, 160, 0.2);
}

.footer-content > a {
    display: inline-block;
    transition: var(--transition-standard);
}

.footer-content > a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for cards */
.file-card:nth-child(1) { animation-delay: 0.1s; }
.file-card:nth-child(2) { animation-delay: 0.15s; }
.file-card:nth-child(3) { animation-delay: 0.2s; }
.file-card:nth-child(4) { animation-delay: 0.25s; }
.file-card:nth-child(5) { animation-delay: 0.3s; }
.file-card:nth-child(6) { animation-delay: 0.35s; }
.file-card:nth-child(7) { animation-delay: 0.4s; }
.file-card:nth-child(8) { animation-delay: 0.45s; }
.file-card:nth-child(9) { animation-delay: 0.5s; }
.file-card:nth-child(10) { animation-delay: 0.55s; }
.file-card:nth-child(11) { animation-delay: 0.6s; }
.file-card:nth-child(12) { animation-delay: 0.65s; }

/* Table responsiveness */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* No results message */
.no-results-message {
    text-align: center;
    padding: 40px 0;
    color: #86868b;
    animation: fadeIn 0.5s ease-out;
    font-size: 1rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    :root {
        --container-padding: 30px;
    }
    
    .container {
        min-height: 650px;
    }
    
    .tab-content-wrapper {
        min-height: auto;
        margin-bottom: 60px;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .container {
        min-height: auto;
    }
    
    .tab-content-wrapper {
        min-height: auto;
        margin-bottom: 50px;
    }
    
    body {
        padding: 15px;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        border-radius: 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin: 20px 0 15px;
    }
    
    h3 {
        font-size: 1.2rem;
        margin: 20px 0 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .extension {
        font-size: 1.8rem;
    }
    
    .usage-table th, .usage-table td {
        padding: 14px 16px;
    }
    
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding-bottom: 15px;
        padding-top: 5px;
        position: relative;
    }
    
    .tab {
        padding: 10px 18px;
        font-size: 0.875rem;
        margin-bottom: 8px;
        flex: 0 1 auto;
        transform-origin: center center;
    }
    
    .file-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .theme-toggle-container {
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
        z-index: 100 !important;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
    }
    
    .footer-logo {
        height: 28px;
    }
    
    footer {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 15px;
    }
    
    .container {
        min-height: auto;
    }
    
    .tab-content-wrapper {
        min-height: auto;
        margin-bottom: 40px;
    }
    
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .search-box {
        padding: 12px 16px 12px 45px;
        font-size: 0.9375rem;
        width: 100%;
        border-radius: 10px;
    }
    
    .search-icon {
        left: 16px;
        width: 18px;
        height: 18px;
    }
    
    .app-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .card-content p, .card-content li {
        font-size: 0.875rem;
    }
    
    .footer-logo {
        height: 25px;
    }
    
    .usage-table th, .usage-table td {
        padding: 8px;
        font-size: 0.8125rem;
    }
    
    .file-icon {
        width: 40px;
        height: 40px;
    }
    
    .tabs {
        margin-bottom: 25px;
        padding-bottom: 5px;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    footer {
        margin-top: 30px;
        padding: 20px 0;
    }
}

/* Dark mode styles - Ensure these are not inside a media query */
body.dark-mode {
    background-color: #000;
    color: #F5F5F7;
}

body.dark-mode .container {
    background-color: #1D1D1F;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #F5F5F7;
}

body.dark-mode .card-content p, 
body.dark-mode .card-content li {
    color: #A1A1A6;
}

body.dark-mode .card-content strong {
    color: #F5F5F7;
}

body.dark-mode .search-box {
    background-color: #2C2C2E;
    border-color: #3A3A3C;
    color: #F5F5F7;
}

body.dark-mode .search-box:focus {
    background-color: #3A3A3C;
    border-color: var(--primary);
}

body.dark-mode .app-badge {
    background-color: #2C2C2E;
    color: #F5F5F7;
    border-color: #3A3A3C;
}

body.dark-mode .app-badge:hover {
    background-color: rgba(0, 113, 227, 0.2);
    border-color: var(--primary);
}

body.dark-mode .tab:not(.active) {
    color: #F5F5F7;
}

body.dark-mode .tab:hover:not(.active) {
    background-color: rgba(0, 113, 227, 0.2);
}

body.dark-mode .usage-table tr:nth-child(even) {
    background-color: #2C2C2E;
}

body.dark-mode .usage-table tr:nth-child(odd) td {
    background-color: #1D1D1F;
}

body.dark-mode .file-card {
    background-color: #2C2C2E;
    border-color: #3A3A3C;
}

body.dark-mode .footer-contact,
body.dark-mode .footer-copyright {
    color: #A1A1A6;
}

body.dark-mode .footer-social a {
    color: #F5F5F7;
}

body.dark-mode .footer-social a:hover {
    color: var(--primary);
}

body.dark-mode .footer-logo,
body.dark-mode .typecta-logo {
    filter: invert(1);
}

body.dark-mode .no-results-message {
    color: #A1A1A6;
}

body.dark-mode .back-to-top {
    background-color: var(--primary-dark);
}

body.dark-mode .back-to-top:hover {
    background-color: var(--primary);
}

body.dark-mode .theme-toggle {
    background-color: var(--primary-dark);
}

body.dark-mode .theme-toggle:hover {
    background-color: var(--primary);
}

body.dark-mode .theme-toggle svg {
    fill: white;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

/* Media Queries */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .tabs {
        padding: 0 15px;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .visitor-tracker {
        margin-top: 20px;
    }
    
    .theme-toggle-container {
        top: auto !important;
        right: auto !important;
        bottom: 20px !important;
        left: 20px !important;
        position: fixed;
        z-index: 100;
    }
} 