:root {
    --bg-color: #0f172a; /* Tailwind Slate 900 */
    --panel-bg: rgba(30, 41, 59, 0.6); /* Slate 800 with opacity */
    --panel-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --accent-primary: #3b82f6; /* Blue 500 */
    --accent-hover: #2563eb;
    
    --color-live: #10b981; /* Emerald 500 */
    --color-dead: #ef4444; /* Red 500 */
    --color-captcha: #f59e0b; /* Amber 500 */
    --color-checking: #8b5cf6; /* Violet 500 */
    
    --font-family: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 2rem;
}

/* Animated Background Blobs */
.background-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.2);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.2);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header.glass-panel {
    text-align: center;
    padding: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-weight: 400;
}

/* CMW Credits */
.cmw-credits {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--panel-border);
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.cmw-credits .credit-text {
    opacity: 0.8;
}

.cmw-credits .credit-name {
    font-weight: 700;
    color: #fff;
    margin: 0 4px;
}

.cmw-credits .credit-amp {
    color: var(--accent-primary);
    font-weight: bold;
}

.cmw-credits .glow {
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5), 0 0 20px rgba(167, 139, 250, 0.3);
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% { text-shadow: 0 0 10px rgba(96, 165, 250, 0.5), 0 0 20px rgba(167, 139, 250, 0.3); }
    100% { text-shadow: 0 0 15px rgba(96, 165, 250, 0.8), 0 0 30px rgba(167, 139, 250, 0.6); }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Stats */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, background 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.stat-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-live .stat-icon { color: var(--color-live); box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2); }
.stat-captcha .stat-icon { color: var(--color-captcha); box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.2); }
.stat-dead .stat-icon { color: var(--color-dead); box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.2); }
.stat-checking .stat-icon { color: var(--color-checking); box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2); }

/* Progress */
.progress-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--color-checking));
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Input Area */
.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.controls label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.controls input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    width: 60px;
}

textarea {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: monospace;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:not(:disabled):hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--color-dead);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Results */
.results-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.results-container::-webkit-scrollbar {
    width: 6px;
}
.results-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}
.results-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.result-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

.result-item {
    background: #111827; /* Darker slate/gray background */
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--panel-border);
    animation: slideIn 0.3s ease-out;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.result-item.status-live { border-left-color: var(--color-live); }
.result-item.status-captcha { border-left-color: var(--color-captcha); }
.result-item.status-dead { border-left-color: var(--color-dead); }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.result-url {
    font-weight: 500;
    color: var(--accent-primary);
    text-decoration: none;
    word-break: break-all;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-right: 1rem;
}

.result-url:hover {
    text-decoration: underline;
}

.result-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-live { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--color-live); }
.badge-captcha { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--color-captcha); }
.badge-dead { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--color-dead); }

.result-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.detail-row span.label {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.25rem;
}
