body {
    background-image: url('/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.banner-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px auto 40px;
    flex-wrap: wrap;
    padding: 0 20px;
    max-width: 1500px;
}

.banner {
    width: 468px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.banner-row a {
    display: block;
    position: relative;
}

.banner-row a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-area {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
}

#searchInput {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 250px;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #5e5d67;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

#searchButton {
    padding: 10px 20px;
    background-color: #5e5d67;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

#searchButton:hover {
    background-color: #6f6e77;
}

#searchButton:active {
    transform: scale(0.98);
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-right: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #5e5d67;
    cursor: pointer;
}

#results {
    margin-top: 20px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.5;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
}

#status {
    margin-top: 10px;
    color: #000000;
    font-style: italic;
    font-size: 14px;
    min-height: 20px;
}

.telegram-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    text-align: center;
    background-color: transparent;
    z-index: 100;
}

body {
    padding-bottom: 60px;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0088cc;
    text-decoration: none;
    font-weight: 500;
    background-color: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.separator {
    color: rgba(0,0,0,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#results::-webkit-scrollbar {
    width: 8px;
}

#results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 1000px) {
    .container {
        padding: 15px;
    }
    
    .search-area {
        flex-direction: column;
        align-items: stretch;
    }
    
    .checkbox-group {
        justify-content: space-between;
        margin: 10px 0;
    }
    
    #searchButton {
        width: 100%;
    }
    
    .banner-row {
        flex-direction: column;
        align-items: center;
    }
    
    .banner {
        margin-bottom: 15px;
        width: 100%;
        max-width: 468px;
    }
    
    .telegram-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        display: none;
    }
}

@media (min-width: 1001px) and (max-width: 1500px) {
    .banner-row {
        flex-wrap: wrap;
    }
}

.download-section {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.database-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.database-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.database-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border: 1px solid #eee;
}

@media (max-width: 1200px) {
    .download-section {
        position: static;
        transform: none;
        margin-bottom: 20px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

.bin-wrapper {
    margin-bottom: 10px;
}

.bin-item {
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.bin-item:hover {
    background-color: #e0e0e0;
}

.bin-arrow {
    margin-right: 8px;
    font-size: 12px;
    width: 15px;
    display: inline-block;
}

.bin-text {
    flex-grow: 1;
}

.zip-items {
    display: none;
    margin-top: 5px;
    padding-left: 23px;
}

.zip-item {
    padding: 5px 0;
    font-family: monospace;
}

.bin-result {
    font-weight: bold;
    margin-bottom: 3px;
}

.zip-result {
    margin-left: 20px;
    margin-bottom: 10px;
    font-family: monospace;
}

.not-found {
    margin-top: 15px;
    color: #888;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    gap: 10px;
    margin-right: 10px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .checkbox-group {
        width: 100%;
        justify-content: space-between;
        margin: 10px 0;
    }
    
    #searchInput {
        width: 100%;
    }
}

#searchInput {
    min-width: 200px;
    flex-grow: 1;
}