:root {
    --bg-dark: #0f111a;
    --glass-bg: rgba(25, 28, 41, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #10b981;
    --success-hover: #059669;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-x: hidden;
}

/* Background Glowing Orbs */
.background-effects {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.orb-1 {
    width: 400px; height: 400px;
    background: #6366f1;
    top: -100px; left: -100px;
}

.orb-2 {
    width: 300px; height: 300px;
    background: #ec4899;
    bottom: -50px; right: 10%;
    animation-delay: -5s;
}

@keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(30px); }
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-panel-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hidden {
    display: none !important;
    pointer-events: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: #e4e4e7;
    white-space: nowrap;
}

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: #a78bfa;
}

.data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

header {
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

input[type="text"], textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary);
}

.btn {
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.success-btn {
    background: var(--success);
    color: #fff;
    width: 100%;
    padding: 14px 0;
    margin-top: 20px;
}

.success-btn:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--success);
}

/* Toggle Switch */
.options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Loader */
.loader {
    text-align: center;
    margin-top: 32px;
}

.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Result Card */
.repo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.repo-info h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.badge {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 16px;
}

.stat-box {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.status-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.status-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
