* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
    border: 1px solid #404040;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #404040;
}

header h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #b0b0b0;
    font-size: 1.1em;
    font-weight: 400;
}

.input-section {
    margin-bottom: 30px;
}

.input-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 1.1em;
}

#target-url {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    transition: all 0.3s;
    margin-bottom: 10px;
}

#target-url:focus {
    outline: none;
    border-color: #606060;
    box-shadow: 0 0 0 3px rgba(96, 96, 96, 0.2);
    background: #222222;
}

#target-url::placeholder {
    color: #808080;
}

#proxy-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    color: #e0e0e0;
    resize: vertical;
    transition: all 0.3s;
}

#proxy-input:focus {
    outline: none;
    border-color: #606060;
    box-shadow: 0 0 0 3px rgba(96, 96, 96, 0.2);
    background: #222222;
}

#proxy-input::placeholder {
    color: #808080;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #4a4a4a;
    color: #ffffff;
    flex: 1;
    border: 1px solid #606060;
}

.btn-primary:hover {
    background: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #3a3a3a;
    color: #808080;
    cursor: not-allowed;
    transform: none;
    border-color: #404040;
}

.btn-secondary {
    background: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #505050;
}

.btn-secondary:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

.btn-copy {
    background: #404040;
    color: #e0e0e0;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid #505050;
}

.btn-copy:hover {
    background: #505050;
    transform: translateY(-2px);
}

.progress-section {
    margin: 30px 0;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #404040;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #2d2d2d;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #404040;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #606060 0%, #808080 100%);
    width: 0%;
    transition: width 0.3s;
    border-radius: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #b0b0b0;
    font-size: 1.1em;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.result-section {
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.result-section:hover {
    transform: translateY(-5px);
}

.result-403 {
    background: #2d2418;
    border: 2px solid #ff9800;
    color: #ffffff;
}

.result-200 {
    background: #1a2e1a;
    border: 2px solid #4caf50;
    color: #ffffff;
}

.result-error {
    background: #2e1a1a;
    border: 2px solid #f44336;
    color: #ffffff;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.result-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.output-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.output-box:empty::before {
    content: "No proxies found yet...";
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.proxy-item {
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    word-break: break-all;
    color: #e0e0e0;
}

.proxy-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.proxy-item:last-child {
    margin-bottom: 0;
}

/* Scrollbar styling */
.output-box::-webkit-scrollbar {
    width: 8px;
}

.output-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.output-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.output-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 1200px) {
    .results-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Loading animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

