* {
    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, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #1e1e2e;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #2d2d44;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.tabs {
    display: flex;
    background: #252538;
    border-bottom: 2px solid #2d2d44;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #a0a0a0;
}

.tab-btn:hover {
    background: #2d2d44;
    color: #e0e0e0;
}

.tab-btn.active {
    background: #1e1e2e;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    display: none;
    padding: 40px;
    background: #1e1e2e;
}

.tab-content.active {
    display: block;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 1.1em;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

#mass-tab .input-group {
    width: 100%;
}

#domain-input {
    flex: 1;
    padding: 15px;
    background: #252538;
    border: 2px solid #2d2d44;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s;
    font-family: inherit;
    color: #e0e0e0;
}

#domain-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#domain-input::placeholder {
    color: #6b6b7a;
}

#domains-input {
    width: 100%;
    padding: 20px;
    background: #252538;
    border: 2px solid #2d2d44;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    resize: vertical;
    min-height: 300px;
    line-height: 1.6;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

#domains-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: #2a2a3d;
}

#domains-input::placeholder {
    color: #6b6b7a;
}

.btn-primary {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mass-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.domain-count {
    color: #a0a0a0;
    font-size: 0.9em;
    font-weight: 500;
}

.result-container {
    margin-top: 30px;
    padding: 25px;
    background: #252538;
    border-radius: 10px;
    border: 2px solid #2d2d44;
}

.result-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: #1e1e2e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d44;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.result-item label {
    display: block;
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-item .value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
}

.result-item.error {
    border-left: 4px solid #dc3545;
}

.result-item.error .value {
    color: #f87171;
}

.result-item.processing {
    border-left: 4px solid #fbbf24;
}

.result-item.processing p {
    color: #fbbf24;
    margin: 0;
    font-weight: 500;
}

.results-table-container {
    margin-top: 30px;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #252538;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d44;
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.results-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table td {
    padding: 15px;
    border-bottom: 1px solid #2d2d44;
    color: #e0e0e0;
}

.results-table tbody tr {
    background: #252538;
    transition: background 0.2s;
}

.results-table tbody tr:hover {
    background: #2d2d44;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(40, 167, 69, 0.2);
    color: #4ade80;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.error {
    background: rgba(220, 53, 69, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-badge.processing {
    background: rgba(255, 193, 7, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.2em;
    font-weight: 600;
}

.error-message {
    background: rgba(220, 53, 69, 0.15);
    color: #f87171;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin-top: 20px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .input-wrapper {
        flex-direction: column;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .results-table {
        font-size: 0.9em;
    }

    .results-table th,
    .results-table td {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }
}
