.compact-header {
    padding: 30px 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compact-header h1 {
    font-size: 44px !important;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.compact-header h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #888;
    max-width: 600px;
    font-weight: 500;
}

.proxychecker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.attribution {
    text-align: center;
    font-size: 13px;
    color: var(--color-secondary);
    margin-bottom: 20px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
}

.attribution a {
    color: #0066cc;
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

.settings-panel {
    background-color: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.settings-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.protocol-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.protocol-selector label {
    font-weight: 600;
    font-size: 14px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input {
    margin: 0;
}

.test-url-group, .timeout-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.test-url-group label, .timeout-group label {
    font-weight: 600;
    font-size: 14px;
}

.test-url-group input, .timeout-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 230px;
    font-family: 'Inter', sans-serif;
}

.timeout-group input {
    width: 100px;
}

.proxy-input-section {
    background-color: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.input-header h3 {
    font-size: 18px;
    margin: 0 0 4px 0;
}

.proxy-format {
    font-size: 13px;
    color: var(--color-secondary);
}

.proxy-counter {
    font-size: 13px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

#proxyInput {
    width: 100%;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.input-controls {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.results-section {
    background-color: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.results-header {
    margin-bottom: 15px;
}

.results-header h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.result-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 10px;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary);
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.stat-working {
    color: #16a34a;
}

.stat-failed {
    color: #dc2626;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.filter-group, .sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label, .sort-group label {
    font-size: 13px;
    font-weight: 600;
}

.filter-group select, .sort-group select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.btn-danger {
    background-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.results-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table th {
    background-color: #f5f5f5;
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
}

.results-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.col-proxy {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    min-width: 180px;
}

.col-status {
    min-width: 80px;
    width: 100px;
}

.col-speed {
    min-width: 180px;
    width: 220px;
}

.col-actions {
    width: 60px;
    text-align: center;
}

.status-checking, .status-working, .status-failed {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-checking {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.status-working {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.status-failed {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.speed-fast, .speed-medium, .speed-slow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.speed-bars {
    display: flex;
    gap: 2px;
    margin-right: 12px;
}

.speed-bar {
    width: 3px;
    height: 12px;
    border-radius: 1px;
}

.speed-fast .speed-bar {
    background-color: #16a34a;
}

.speed-medium .speed-bar:nth-child(1),
.speed-medium .speed-bar:nth-child(2) {
    background-color: #d97706;
}

.speed-medium .speed-bar:nth-child(3) {
    background-color: rgba(0, 0, 0, 0.1);
}

.speed-slow .speed-bar:nth-child(1) {
    background-color: #dc2626;
}

.speed-slow .speed-bar:nth-child(2),
.speed-slow .speed-bar:nth-child(3) {
    background-color: rgba(0, 0, 0, 0.1);
}

.speed-fast {
    color: #16a34a;
}

.speed-medium {
    color: #d97706;
}

.speed-slow {
    color: #dc2626;
}

.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.action-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

.progress-bar-container {
    margin-top: 20px;
}

.progress-stats {
    display: flex;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #2563eb;
    width: 0%;
    transition: width 0.2s ease;
}

.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: var(--color-secondary);
    grid-column: 1 / -1;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 10px;
    gap: 8px;
}

.pagination-btn {
    background-color: var(--color-button-light-bg);
    border: 1px solid #ddd;
    color: var(--color-primary);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #e9e9e9;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-size: 14px;
    margin: 0 12px;
}

@media (max-width: 768px) {
    .settings-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .protocol-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .test-url-group input {
        width: 100%;
    }
    
    .input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .copy-all-btn, .filter-group, .sort-group {
        width: 100%;
    }
    
    .filter-group select, .sort-group select {
        flex-grow: 1;
    }
    
    .pagination-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .compact-header h1 {
        font-size: 32px !important;
    }
    
    .compact-header h2 {
        font-size: 15px;
    }
    
    .proxychecker-container {
        padding: 10px;
    }
    
    .settings-panel, .proxy-input-section, .results-section {
        padding: 15px;
    }
    
    .input-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-controls .btn {
        width: 100%;
    }
    
    .results-table th, .results-table td {
        padding: 8px 10px;
    }
    
    .progress-stats {
        font-size: 12px;
    }
}