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

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #2a2a2a;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #3d3d3d;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #555555;
    position: relative;
    z-index: 1;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.left-panel {
    display: flex;
    flex-direction: column;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-section,
.select-section,
.checkbox-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 600;
    color: #cccccc;
    font-size: 14px;
    letter-spacing: 0.5px;
}

input[type="file"],
select {
    padding: 14px 16px;
    border: 2px solid #555555;
    border-radius: 10px;
    font-size: 15px;
    background: #555555;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: #666666;
}

input[type="file"]::file-selector-button {
    background: #666666;
    border: 1px solid #777777;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #777777;
}

select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

.webhook-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.webhook-section input[type="text"] {
    padding: 14px 16px;
    border: 2px solid #555555;
    border-radius: 10px;
    font-size: 14px;
    background: #555555;
    color: #ffffff;
    transition: all 0.3s ease;
}

.webhook-section input[type="text"]:focus {
    outline: none;
    border-color: #666666;
}

.webhook-section input[type="text"]::placeholder {
    color: #999999;
}

.delay-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delay-section input[type="number"] {
    padding: 14px 16px;
    border: 2px solid #555555;
    border-radius: 10px;
    font-size: 15px;
    background: #555555;
    color: #ffffff;
    transition: all 0.3s ease;
}

.delay-section input[type="number"]:focus {
    outline: none;
    border-color: #666666;
}

.checkbox-section {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.checkbox-section input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #888888;
    border-radius: 50%;
}

.checkbox-section label {
    cursor: pointer;
    margin: 0;
    color: #cccccc;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.pattern-btn {
    padding: 12px 16px;
    background: #555555;
    border: 2px solid #666666;
    border-radius: 8px;
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pattern-btn:hover {
    background: #666666;
    border-color: #777777;
    color: #ffffff;
}

.pattern-btn.selected {
    background: #666666;
    border-color: #888888;
    color: #ffffff;
}

#checkBtn {
    padding: 16px 32px;
    background: #666666;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

#checkBtn:hover {
    background: #777777;
}

#checkBtn:active {
    transform: translateY(0);
}

.button-group {
    display: flex;
    gap: 12px;
}

#stopBtn {
    padding: 16px 32px;
    background: #555555;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

#stopBtn:hover:not(:disabled) {
    background: #666666;
}

#stopBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#resumeBtn {
    padding: 16px 32px;
    background: #5a5a5a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

#resumeBtn:hover:not(:disabled) {
    background: #6a6a6a;
}

#resumeBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#checkBtn.loading {
    pointer-events: none;
    opacity: 0.8;
}

#checkBtn.loading .btn-text {
    display: none;
}

#checkBtn.loading .btn-spinner {
    display: inline-block;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-section {
    padding: 20px;
    background: #4a4a4a;
    border-radius: 12px;
    border: 1px solid #555555;
}

.results-section h2 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.result-group {
    margin-bottom: 25px;
}

.result-group h3 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.available {
    color: #e0e0e0;
}

.taken {
    color: #aaaaaa;
}

.error {
    color: #888888;
}

.result-group ul {
    list-style: none;
    padding: 0;
}

.result-group li {
    padding: 10px 16px;
    margin: 6px 0;
    background: rgba(30, 30, 50, 0.6);
    border-radius: 8px;
    font-size: 14px;
    border-left: 3px solid;
    transition: all 0.2s ease;
}

.result-group li:hover {
    background: rgba(40, 40, 70, 0.8);
    transform: translateX(4px);
}

.result-group .available + ul li {
    border-left-color: #e0e0e0;
}

.result-group .taken + ul li {
    border-left-color: #aaaaaa;
}

.result-group .error + ul li {
    border-left-color: #888888;
}

.loading {
    color: #cccccc;
    font-weight: 600;
    font-size: 16px;
}

.logs-section {
    margin-top: 30px;
    padding: 20px;
    background: #4a4a4a;
    border-radius: 12px;
    border: 1px solid #555555;
}

.logs-section h2 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.log-content {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(10, 10, 20, 0.4);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.log-content::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-track {
    background: #3d3d3d;
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
}

.log-entry {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 200, 255, 0.05);
}

.log-time {
    color: #999999;
    margin-right: 8px;
}

.log-info {
    color: #cccccc;
}

.log-success {
    color: #e0e0e0;
}

.log-warning {
    color: #aaaaaa;
}

.log-error {
    color: #888888;
}

.log-available {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    #checkBtn {
        padding: 14px 24px;
        font-size: 14px;
    }
}
