/* DupeManager — Custom Styles */

/* Glass morphism card */
.glass-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
}

/* Navigation links */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    transition: all 0.2s;
}

.nav-link:hover {
    color: white;
    background: rgba(148, 163, 184, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(59, 130, 246, 0.2);
}

/* Stat card */
.stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateY(-1px);
}

/* Toast animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-enter {
    animation: slideIn 0.3s ease-out;
}

.toast-exit {
    animation: slideOut 0.3s ease-in;
}

/* Progress bar */
.progress-bar {
    height: 0.5rem;
    border-radius: 0.25rem;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 0.25rem;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

/* Quality badge */
.quality-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.quality-best {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.quality-normal {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.quality-poor {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Wizard modal */
.wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-content {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    max-width: 56rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Copy card */
.copy-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s;
}

.copy-card:hover {
    border-color: rgba(148, 163, 184, 0.3);
}

.copy-card.best {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.copy-card.selected {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
}

.copy-card.selected.best {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
}

/* Copy checkbox */
.copy-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Button styles */
.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-success {
    background: #22c55e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-success:disabled {
    background: #166534;
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-ghost {
    background: transparent;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.1);
    color: white;
}

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

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.data-table tr:hover td {
    background: rgba(148, 163, 184, 0.05);
}

/* Duration selector */
.duration-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.duration-value {
    width: 5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}
