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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.tagline a {
    color: white;
    text-decoration: none;
}

nav {
    margin: 30px auto;
}

.search-bar form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
}

.search-bar button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background: #5568d3;
}

main {
    display: block;
    margin-bottom: 50px;
}

.sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.categories {
    list-style: none;
}

.categories li {
    margin-bottom: 10px;
}

.categories a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.categories a:hover, .categories a.active {
    background: #667eea;
    color: white;
}

.btn-submit {
    display: block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #10b981;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.btn-submit:hover {
    background: #059669;
}

.content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ad-space {
    margin: 20px 0;
    text-align: center;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.number-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    position: relative;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #667eea;
    color: white;
    font-size: 0.75rem;
    border-radius: 12px;
    margin-bottom: 10px;
}

.number-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.number-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.number-card p {
    color: #6b7280;
    margin-bottom: 10px;
}

.source, .date {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: #999;
}

.form-container {
    max-width: 700px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-container h2 {
    margin-bottom: 30px;
    color: #667eea;
}

.submit-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.875rem;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5568d3;
}

.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.info-box {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.info-box h3 {
    color: #1e40af;
    margin-bottom: 10px;
}

.info-box ul {
    margin-left: 20px;
    color: #1e3a8a;
}

footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }

    .search-hero input {
        width: 100%;
    }
}
