﻿        body {
            background: #f5f5f5;
            margin: 0;
            padding: 0;
            transition: background-color 0.3s ease, color 0.3s ease;
            min-height: 100vh;
        }

        .combinations-hero {
            padding: 2rem 2rem 1rem;
            text-align: center;
            background: linear-gradient(180deg, rgba(139, 69, 19, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
        }

        .combinations-hero h1 {
            font-size: clamp(2rem, 5vw, 2.5rem);
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 0.5rem 0;
            letter-spacing: -0.02em;
        }

        .combinations-hero p {
            font-size: 1rem;
            color: #666;
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .combinations-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        .filters-section {
            background: white;
            padding: 1.5rem;
            border-radius: 16px;
            margin-bottom: 2rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-group label {
            font-weight: 600;
            color: #333;
            font-size: 0.9rem;
        }

        .filter-input {
            padding: 0.5rem 1rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 0.9rem;
            min-width: 200px;
        }

        .filter-input:focus {
            outline: none;
            border-color: #8B4513;
        }

        .popular-section {
            background: white;
            padding: 2rem;
            border-radius: 16px;
            margin-bottom: 2rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .popular-section h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 1.5rem 0;
        }

        .popular-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1rem;
        }

        .popular-item {
            background: #f9f9f9;
            padding: 1rem;
            border-radius: 12px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .popular-item:hover {
            background: #f5f5f5;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .popular-color-preview {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .popular-info {
            flex: 1;
        }

        .popular-name {
            font-size: 0.95rem;
            font-weight: 600;
            margin: 0 0 0.25rem 0;
        }

        .popular-stats {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        .popular-rank {
            width: 32px;
            height: 32px;
            background: #8B4513;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .popular-item:hover .popular-rank {
            background: white;
            color: #8B4513;
        }

        .colors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
        }

        .color-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .color-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .color-header {
            padding: 1rem;
        }

        .color-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0 0 0.5rem 0;
        }

        .color-info {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: #666;
        }

        .color-swatch {
            height: 120px;
            width: 100%;
            position: relative;
        }

        .color-code {
            position: absolute;
            bottom: 0.5rem;
            right: 0.5rem;
            background: rgba(255, 255, 255, 0.95);
            padding: 0.25rem 0.75rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #333;
        }

        .loading-state {
            text-align: center;
            padding: 4rem 2rem;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #8B4513;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Color Detail Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            z-index: 1;
        }

        .modal-close:hover {
            background: #f5f5f5;
        }

        .modal-header {
            padding: 0;
            border-bottom: none;
        }

        .modal-color-preview {
            height: 200px;
            width: 100%;
            border-radius: 20px 20px 0 0;
            position: relative;
        }

        .modal-color-info {
            padding: 1.5rem 2rem;
            background: white;
        }

        .modal-color-info h2 {
            font-size: 1.75rem;
            color: #1a1a1a;
            margin: 0 0 0.5rem 0;
            font-weight: 700;
        }

        .modal-color-details {
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .detail-item {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #f9f9f9;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            color: #666;
        }

        .detail-label {
            font-weight: 600;
            color: #8B4513;
        }

        .detail-value {
            color: #333;
            font-weight: 500;
        }

        .load-more-btn {
            background: #8B4513;
            color: white;
            border: none;
            padding: 0.875rem 2rem;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
        }

        .load-more-btn:hover {
            background: #6B3410;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
        }

        .load-more-btn:active {
            transform: translateY(0);
        }

        .palette-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .palette-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .palette-colors {
            display: flex;
            height: 120px;
        }

        .palette-color {
            flex: 1;
            position: relative;
        }

        .palette-info {
            padding: 1rem;
        }

        .palette-id {
            font-size: 0.9rem;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0;
        }

        .palette-hex-codes {
            font-size: 0.75rem;
            color: #666;
            margin-top: 0.5rem;
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .hex-code {
            background: #f9f9f9;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-family: monospace;
        }

        .mode-toggle-section {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            padding: 0 0.5rem;
        }

        .mode-toggle-btn {
            flex: 1;
            padding: 1rem 2rem;
            border: 2px solid #ddd;
            background: white;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            color: #666;
            cursor: pointer;
            transition: all 0.2s;
        }

        .mode-toggle-btn:hover {
            border-color: #8B4513;
            color: #8B4513;
        }

        .mode-toggle-btn.active {
            background: #8B4513;
            border-color: #8B4513;
            color: white;
        }

        .clear-search-btn {
            background: #f5f5f5;
            color: #666;
            border: 1px solid #ddd;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .clear-search-btn:hover {
            background: #e5e5e5;
            border-color: #999;
        }

        .modal-combinations {
            padding: 2rem;
        }

        .modal-combinations h3 {
            font-size: 1.25rem;
            color: #333;
            margin: 0 0 1rem 0;
        }

        .combination-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
        }

        .combination-card {
            background: #f9f9f9;
            padding: 1rem;
            border-radius: 12px;
            transition: all 0.2s;
        }

        .combination-card:hover {
            background: #f5f5f5;
            transform: translateY(-2px);
        }

        .combination-preview {
            display: flex;
            gap: 4px;
            margin-bottom: 0.5rem;
        }

        .combination-bar {
            flex: 1;
            height: 40px;
            border-radius: 4px;
        }

        .combination-index {
            font-size: 0.85rem;
            font-weight: 600;
            text-align: center;
        }

        @media (max-width: 1024px) {
            .combinations-container {
                padding: 1.5rem;
            }

            .popular-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }

            .minimal-nav {
                padding: 1.25rem 2rem;
            }

            .nav-links {
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .minimal-nav {
                padding: 1rem 1.5rem;
                flex-wrap: wrap;
                gap: 1rem;
            }

            .nav-logo {
                font-size: 1rem;
            }

            .nav-logo svg {
                width: 20px;
                height: 20px;
            }

            .nav-links {
                gap: 0.75rem;
                flex-wrap: wrap;
            }

            .nav-link {
                padding: 0.4rem 0.8rem;
                font-size: 0.85rem;
            }

            .nav-auth-button {
                padding: 0.4rem 1rem;
                font-size: 0.85rem;
            }

            .nav-auth-button svg {
                width: 16px;
                height: 16px;
            }

            .combinations-hero {
                padding: 1.5rem 1rem 1rem;
            }

            .combinations-hero h1 {
                font-size: 2rem;
            }

            .combinations-container {
                padding: 1rem;
            }

            .popular-section {
                padding: 1.5rem;
            }

            .popular-grid {
                grid-template-columns: 1fr;
            }

            .popular-item {
                padding: 0.875rem;
            }

            .colors-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 1rem;
            }

            .filters-section {
                flex-direction: column;
                align-items: stretch;
                padding: 1rem;
            }

            .filter-group {
                width: 100%;
            }

            .filter-input {
                width: 100%;
                min-width: auto;
            }

            .modal-content {
                width: 95%;
                max-height: 85vh;
            }

            .modal-header {
                padding: 1.5rem;
            }

            .modal-combinations {
                padding: 1.5rem;
            }

            .combination-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }

            .palette-colors {
                height: 80px;
            }

            .load-more-btn {
                padding: 0.75rem 1.5rem;
                font-size: 0.9rem;
            }

            .mode-toggle-section {
                flex-direction: column;
                gap: 0.75rem;
            }

            .mode-toggle-btn {
                padding: 0.875rem 1.5rem;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .minimal-nav {
                padding: 0.875rem 1rem;
            }

            .nav-logo {
                font-size: 0.9rem;
            }

            .nav-logo svg {
                width: 18px;
                height: 18px;
            }

            .nav-links {
                gap: 0.5rem;
                width: 100%;
                justify-content: space-between;
            }

            .nav-link {
                padding: 0.35rem 0.6rem;
                font-size: 0.8rem;
            }

            .nav-auth-button {
                padding: 0.35rem 0.75rem;
                font-size: 0.8rem;
            }

            .nav-auth-button span {
                display: none;
            }

            .nav-auth-button svg {
                width: 18px;
                height: 18px;
                margin: 0;
            }

            .combinations-hero h1 {
                font-size: 1.75rem;
            }

            .combinations-hero p {
                font-size: 0.9rem;
            }

            .combinations-container {
                padding: 0.75rem;
            }

            .popular-section {
                padding: 1rem;
                margin-bottom: 1.5rem;
            }

            .popular-section h2 {
                font-size: 1.25rem;
            }

            .popular-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .popular-item>div:first-child {
                width: 100% !important;
            }

            .popular-color-preview {
                width: 100%;
                height: 50px;
            }

            .colors-grid {
                grid-template-columns: 1fr;
                gap: 0.875rem;
            }

            .color-card {
                border-radius: 12px;
            }

            .filters-section {
                gap: 0.75rem;
                padding: 0.875rem;
            }

            .filter-group label {
                font-size: 0.85rem;
            }

            .filter-input {
                font-size: 0.875rem;
                padding: 0.5rem 0.875rem;
            }

            .modal-header {
                padding: 1rem;
            }

            .modal-color-preview {
                height: 150px;
            }

            .modal-combinations {
                padding: 1rem;
            }

            .modal-combinations h3 {
                font-size: 1.1rem;
            }

            .combination-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }

            .detail-item {
                padding: 0.625rem;
            }

            .detail-label {
                font-size: 0.7rem;
            }

            .detail-value {
                font-size: 0.875rem;
            }
        }

        /* Dark Mode Styles */
        body.dark-mode {
            background: #121212;
            color: #e0e0e0;
        }

        body.dark-mode .combinations-hero {
            background: linear-gradient(180deg, rgba(139, 69, 19, 0.1) 0%, rgba(18, 18, 18, 0) 100%);
        }

        body.dark-mode .combinations-hero h1 {
            color: #e0e0e0;
        }

        body.dark-mode .combinations-hero p {
            color: #a0a0a0;
        }

        body.dark-mode .filters-section {
            background: #1e1e1e;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .filter-group label {
            color: #e0e0e0;
        }

        body.dark-mode .filter-input {
            background: #242424;
            border-color: #333333;
            color: #e0e0e0;
        }

        body.dark-mode .filter-input:focus {
            border-color: #cd853f;
            background: #2a2a2a;
        }

        body.dark-mode .filter-input::placeholder {
            color: #666;
        }

        body.dark-mode .filter-input option {
            background: #242424;
            color: #e0e0e0;
        }

        body.dark-mode select.filter-input {
            background: #242424;
            border-color: #333333;
            color: #e0e0e0;
        }

        body.dark-mode select.filter-input:focus {
            border-color: #cd853f;
            background: #2a2a2a;
        }

        body.dark-mode .popular-section {
            background: #1e1e1e;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .popular-section h2 {
            color: #e0e0e0;
        }

        body.dark-mode .popular-item {
            background: #242424;
        }

        body.dark-mode .popular-item:hover {
            background: #2a2a2a;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        body.dark-mode .popular-name {
            color: #e0e0e0;
        }

        body.dark-mode .popular-stats {
            color: #a0a0a0;
        }

        body.dark-mode .popular-rank {
            background: #cd853f;
        }

        body.dark-mode .popular-item:hover .popular-rank {
            background: #cd853f;
            color: white;
        }

        body.dark-mode .popular-item:hover {
            background: #2a2a2a;
        }

        body.dark-mode .color-card {
            background: #1e1e1e;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .color-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        body.dark-mode .color-name {
            color: #e0e0e0;
        }

        body.dark-mode .color-info {
            color: #a0a0a0;
        }

        body.dark-mode .color-code {
            background: rgba(30, 30, 30, 0.95);
            color: #e0e0e0;
        }

        body.dark-mode .palette-card {
            background: #1e1e1e;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .palette-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        body.dark-mode .palette-id {
            color: #e0e0e0;
        }

        body.dark-mode .palette-hex-codes {
            color: #a0a0a0;
        }

        body.dark-mode .hex-code {
            background: #242424;
            color: #e0e0e0;
        }

        body.dark-mode .modal {
            background: rgba(0, 0, 0, 0.7);
        }

        body.dark-mode .modal-content {
            background: #1e1e1e;
        }

        body.dark-mode .modal-close {
            background: #242424;
            color: #e0e0e0;
        }

        body.dark-mode .modal-close:hover {
            background: #2a2a2a;
        }

        body.dark-mode .modal-color-info {
            background: #1e1e1e;
        }

        body.dark-mode .modal-header {
            background: transparent;
        }

        body.dark-mode .popular-item {
            background: #242424;
        }

        body.dark-mode .modal-color-info h2 {
            color: #e0e0e0;
        }

        body.dark-mode .detail-item {
            background: #242424;
            color: #a0a0a0;
        }

        body.dark-mode .detail-label {
            color: #cd853f;
        }

        body.dark-mode .detail-value {
            color: #e0e0e0;
        }

        body.dark-mode .modal-combinations h3 {
            color: #e0e0e0;
        }

        body.dark-mode .combination-card {
            background: #242424;
        }

        body.dark-mode .combination-card:hover {
            background: #2a2a2a;
        }

        body.dark-mode .combination-index {
            color: #e0e0e0;
        }

        body.dark-mode .mode-toggle-btn {
            background: #1e1e1e;
            border-color: #333333;
            color: #a0a0a0;
        }

        body.dark-mode .mode-toggle-btn:hover {
            border-color: #cd853f;
            color: #cd853f;
        }

        body.dark-mode .mode-toggle-btn.active {
            background: #cd853f;
            border-color: #cd853f;
            color: white;
        }

        body.dark-mode .clear-search-btn {
            background: #242424;
            color: #a0a0a0;
            border-color: #333333;
        }

        body.dark-mode .clear-search-btn:hover {
            background: #2a2a2a;
            border-color: #444444;
        }

        body.dark-mode .load-more-btn {
            background: #cd853f;
            box-shadow: 0 2px 8px rgba(205, 133, 63, 0.3);
        }

        body.dark-mode .load-more-btn:hover {
            background: #deb887;
            box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
        }

        body.dark-mode .loading-state p {
            color: #a0a0a0;
        }

        body.dark-mode .spinner {
            border-color: #2a2a2a;
            border-top-color: #cd853f;
        }

        body.dark-mode .colors-grid {
            background: #121212;
        }

        body.dark-mode .color-header {
            background: #1e1e1e;
        }

        body.dark-mode .color-swatch {
            background: #242424;
        }

        body.dark-mode .popular-grid {
            background: transparent;
        }

        body.dark-mode .combinations-container {
            background: #121212;
        }

        body.dark-mode .mode-toggle-section {
            background: transparent;
        }

        body.dark-mode #wadaSection,
        body.dark-mode #colorhuntSection {
            background: transparent;
        }

        body.dark-mode #colorhuntGrid {
            background: transparent;
        }

        body.dark-mode #colorhuntSection .popular-section {
            background: #1e1e1e;
        }

        body.dark-mode #colorhuntSection .popular-section h2 {
            color: #e0e0e0;
        }

        body.dark-mode #colorhuntSection .popular-section p {
            color: #a0a0a0;
        }

        body.dark-mode #colorhuntLoading {
            background: transparent;
        }

        body.dark-mode #colorhuntLoading p {
            color: #a0a0a0;
        }

        body.dark-mode #colorhuntFilters {
            background: #1e1e1e;
            border-color: #333333;
        }

        body.dark-mode #colorhuntFilters .filter-group label {
            color: #e0e0e0;
        }

        body.dark-mode #colorhuntSearchInput {
            background: #242424;
            border-color: #333333;
            color: #e0e0e0;
        }

        body.dark-mode #colorhuntSearchInput:focus {
            border-color: #cd853f;
            background: #2a2a2a;
        }

        body.dark-mode #colorhuntSearchInput::placeholder {
            color: #666;
        }

        body.dark-mode .modal-color-preview {
            background: #242424;
        }

        /* Dark Mode Navigation Styles */
        body.dark-mode .minimal-nav {
            background: rgba(30, 30, 30, 0.98);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        body.dark-mode .nav-logo {
            color: #e0e0e0;
        }

        body.dark-mode .nav-logo:hover {
            color: #cd853f;
        }

        body.dark-mode .nav-link {
            color: #a0a0a0;
        }

        body.dark-mode .nav-link:hover {
            color: #e0e0e0;
            background: rgba(255, 255, 255, 0.05);
        }

        body.dark-mode .nav-link.active {
            background: #cd853f;
            color: white;
        }

        body.dark-mode .nav-auth-button {
            background: #242424;
            color: #e0e0e0;
        }

        body.dark-mode .nav-auth-button:hover {
            background: #2a2a2a;
        }

        body.dark-mode .mobile-menu-toggle span {
            background: #e0e0e0;
        }

        @media (max-width: 768px) {
            body.dark-mode .nav-links {
                background: #1e1e1e;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }

            body.dark-mode .nav-link:hover {
                background: rgba(255, 255, 255, 0.05);
            }
        }
