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

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f6f7fb;
}

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

.highlight {
    color: #e53935;
    font-weight: bold;
}

.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #3b3fef, #6c63ff);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 30px;
    margin-bottom: 12px;
}

.header p {
    margin-bottom: 8px;
}

.btn-start {
    background-color: #fff;
    color: #4b4ff0;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
}

.btn-start:hover {
    background-color: #f0f0f0;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.left-panel,
.right-panel {
    flex: 1;
    min-width: 320px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 22px;
}

.card h3 {
    margin-bottom: 14px;
    color: #4b4ff0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card p {
    margin-bottom: 10px;
}

.examples {
    background-color: #f5f7ff;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
}

.examples div {
    padding: 5px 0;
    font-family: monospace;
    word-break: break-all;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9dced;
    border-radius: 6px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

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

.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox input {
    margin-right: 8px;
}

.threads-control {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-weight: bold;
}

.btn-sm {
    width: 32px;
    height: 32px;
    background-color: #4b4ff0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-generate,
.btn-stop,
.btn-export,
.table-btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-generate,
.btn-stop {
    padding: 10px 15px;
    flex: 1;
}

.btn-generate {
    background-color: #4b4ff0;
    color: #fff;
}

.btn-stop {
    background-color: #6b7280;
    color: #fff;
}

.btn-export {
    background-color: #10b981;
    color: #fff;
    padding: 10px 15px;
    width: 100%;
    margin-bottom: 18px;
}

.btn-generate:hover {
    background-color: #3d41d6;
}

.btn-stop:hover {
    background-color: #5b6270;
}

.btn-export:hover {
    background-color: #0ea271;
}

.btn-generate:disabled,
.btn-stop:disabled {
    background-color: #d8dbe6;
    cursor: not-allowed;
}

.stats {
    margin-top: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.stat-label {
    font-weight: bold;
}

.stat-value {
    text-align: right;
    word-break: break-all;
}

.progress-container {
    margin-top: 16px;
}

.progress-bar {
    height: 10px;
    background-color: #e7e9f5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #4b4ff0, #7c83ff);
    width: 0;
    transition: width 0.2s ease;
}

.results {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-top: 20px;
}

.results h3 {
    margin-bottom: 15px;
    color: #4b4ff0;
}

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

table th,
table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eef0f6;
    font-family: monospace;
    word-break: break-all;
}

table th {
    background-color: #f7f8fd;
    font-weight: bold;
}

.table-btn {
    background-color: #4b4ff0;
    color: #fff;
    padding: 6px 10px;
    margin-right: 8px;
    margin-bottom: 6px;
}

.table-btn:hover {
    background-color: #3d41d6;
}

.footer {
    text-align: center;
    margin-top: 28px;
    color: #6b7280;
}

code {
    background-color: #f3f4f6;
    padding: 2px 5px;
    border-radius: 4px;
}

.notice-text {
    margin-bottom: 10px;
    line-height: 1.7;
}

.notice-warn {
    color: #b91c1c;
    font-weight: bold;
    background-color: #fef2f2;
    padding: 8px 12px;
    border-left: 4px solid #ef4444;
    border-radius: 4px;
}

.notice-box {
    background-color: #fffbeb;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #92400e;
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .main-content {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        border: 1px solid #eef0f6;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 12px;
    }

    td {
        border: none;
        padding: 6px 0;
    }
}
