/* Pin Created Modal */
.modal-pin-created {
    max-width: 600px;
    width: 90%;
}

.pin-created-section {
    margin-bottom: 1.5rem;
}

.pin-created-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pin-created-input-group {
    display: flex;
    gap: 0.5rem;
}

.pin-created-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

.btn-copy-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-small:hover {
    background: var(--background-hover);
    border-color: var(--primary-color);
}

.btn-copy-small svg {
    width: 16px;
    height: 16px;
}

.pin-created-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-hover);
    border-radius: 8px;
}

.pin-created-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pin-created-info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pin-created-info-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.pin-created-status {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--background-hover);
    border-radius: 8px;
}

.pin-created-status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pin-created-status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pin-created-progress {
    margin-bottom: 0.75rem;
}

.pin-created-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.pin-created-progress-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.pin-created-progress-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: right;
}

.pin-created-queue-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.pin-created-notice {
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: var(--warning-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-modal-close {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.toast {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: toastSlideIn 0.3s ease-out;
    min-width: 300px;
}

.toast-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Active Scans Widget */
.active-scans-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.active-scans-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.active-scans-widget-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn-small {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.icon-btn-small:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

.icon-btn-small svg {
    width: 16px;
    height: 16px;
}

.active-scans-widget-content {
    padding: 1rem;
    overflow-y: auto;
    max-height: 500px;
}

.active-scan-item {
    padding: 1rem;
    background: var(--background-hover);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}

.active-scan-item:last-child {
    margin-bottom: 0;
}

.active-scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.active-scan-pin {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.active-scan-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.active-scan-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.active-scan-status-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.active-scan-progress {
    margin-bottom: 0.75rem;
}

.active-scan-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--background-card);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.active-scan-progress-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.active-scan-progress-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: right;
}

.active-scan-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-watch-progress {
    flex: 1;
    padding: 0.5rem 1rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-watch-progress:hover {
    background: var(--background-hover);
    border-color: var(--primary-color);
}

.btn-watch-progress svg {
    width: 14px;
    height: 14px;
}

.btn-close-scan {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-close-scan:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

.btn-close-scan svg {
    width: 16px;
    height: 16px;
}

