﻿/* AgentInstaller.css */

.installer-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.installer-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.installer-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2563eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .installer-icon svg {
        stroke: white;
        stroke-width: 2;
    }

.installer-info-header {
    flex: 1;
}

    .installer-info-header h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
    }

.version-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.installer-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .detail-section label {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.75rem;
    background: var(--background-gray);
    border-radius: 8px;
}

.release-notes {
    white-space: pre-wrap;
    line-height: 1.6;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

    .alert svg {
        flex-shrink: 0;
        stroke-width: 2;
    }

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

    .alert-warning svg {
        stroke: #f59e0b;
    }

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

    .alert-error svg {
        stroke: #ef4444;
    }

.installer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}



.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .installer-card {
        padding: 1.5rem;
    }

    .installer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .installer-icon {
        width: 56px;
        height: 56px;
    }

    .installer-info-header h3 {
        font-size: 1.25rem;
    }

    .installer-actions {
        flex-direction: column;
    }


}

@media (max-width: 480px) {
    .installer-card {
        padding: 1rem;
    }

    .installer-icon {
        width: 48px;
        height: 48px;
    }

        .installer-icon svg {
            width: 32px;
            height: 32px;
        }

    .installer-info-header h3 {
        font-size: 1.125rem;
    }

    .version-badge {
        font-size: 0.8125rem;
        padding: 0.25rem 0.75rem;
    }

    .detail-value {
        font-size: 0.9375rem;
        padding: 0.625rem;
    }
}
