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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    color: #718096;
    text-align: center;
    margin-bottom: 40px;
}

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

label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.slider-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.number-input {
    width: 80px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    transition: border-color 0.3s;
}

.number-input:focus {
    outline: none;
    border-color: #667eea;
}

.full-width {
    width: 100%;
}

.count-display {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.count-slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.count-slider-container .slider {
    max-width: 300px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4a5568;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s;
}

.checkbox-label:hover .checkbox-custom {
    background-color: #cbd5e0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: #4a5568;
    background: rgba(102, 126, 234, 0.05);
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom:after {
    display: block;
}

.generate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.results-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
}

.strings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.string-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.string-text {
    flex: 1;
    font-size: 0.95rem;
    color: #2d3748;
}

.copy-btn {
    padding: 8px 16px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #cbd5e0;
    color: #2d3748;
}

.copy-btn.copied {
    background: #48bb78;
    color: white;
}

.error {
    margin-top: 20px;
    padding: 15px;
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 10px;
    color: #c53030;
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

.status-bar {
    margin-top: 20px;
    text-align: center;
}

.status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.status.healthy {
    background: rgba(72, 187, 120, 0.3);
}

.status.unhealthy {
    background: rgba(245, 101, 101, 0.3);
}

.footer {
    margin-top: 20px;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}