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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

h1 {
    color: #1a202c;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    color: #718096;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.mode-toggle {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.mode-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    color: #2d3748;
}

.mode-toggle input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.stats {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.stats p {
    color: #2d3748;
    line-height: 1.8;
    margin: 5px 0;
}

.category {
    margin-top: 40px;
}

.category h2 {
    color: #2d3748;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.icon-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #0284c7;
}

.icon-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
}

.icon-name {
    font-size: 0.8em;
    color: #4a5568;
    word-break: break-word;
    font-weight: 500;
    line-height: 1.4;
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    color: #718096;
    font-size: 0.9em;
}

.footer a {
    color: #0284c7;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Dark Mode Styles */
body.dark-mode .icon-card {
    background: #000000;
    border-color: #4a5568;
}

body.dark-mode .icon-card:hover {
    border-color: #0284c7;
    box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

body.dark-mode .icon-card img {
    filter: invert(1) brightness(2);
}

body.dark-mode .icon-name {
    color: #ffffff;
}
