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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.shortcuts-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    background: #f0f4f8;
    border-bottom: 1px solid #d0d7de;
    flex-wrap: wrap;
}

.shortcut-btn {
    padding: 12px 24px;
    background: white;
    color: #555;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shortcut-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.shortcut-btn:active {
    transform: translateY(0);
}

.search-container {
    padding: 40px 30px;
    background: #f8f9fa;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.search-type-toggle {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
}

.search-type-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.search-type-toggle input[type="radio"] {
    cursor: pointer;
}

.smart-search-help {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.smart-search-help strong {
    color: #1976d2;
}

.smart-search-help ul {
    margin-top: 10px;
    margin-left: 20px;
}

.smart-search-help li {
    color: #555;
    margin: 5px 0;
}

.message-box {
    margin: 20px 30px;
    padding: 15px 20px;
    border-radius: 6px;
    display: none;
}

.message-box.info {
    display: block;
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

.message-box.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.message-box.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#resultsSection {
    padding: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    color: #333;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.results-info {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.results-info p {
    margin: 0;
    color: #856404;
}

.table-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.price {
    font-weight: 600;
    color: #2e7d32;
}

footer {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    color: #666;
    border-top: 1px solid #ddd;
}

footer p {
    margin: 5px 0;
}

.disclaimer {
    font-size: 0.9em;
    font-style: italic;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .shortcuts-bar {
        gap: 10px;
        padding: 15px;
    }

    .shortcut-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-type-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .export-buttons {
        width: 100%;
    }

    .btn-secondary {
        flex: 1;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }
}
